On Mon, Mar 04, 2019 at 02:44:38PM +0100, Tim Düsterhus wrote:
> One could limit the overall brotli resource usage by returning NULLs in
> the custom allocator when the *total* (versus the per-stream) brotli
> memory consumption exceeds a certain level. The handling of OOMs in the
> remaining code is not relevant then, because brotli is artificially
> limited to a (way) lower memory limit that leaves space for other parts.

Yes it could be done this way. But one needs to write this custom
allocator at least ;-)

Cheers,
Willy

Reply via email to