[FFmpeg-devel] [PATCH 3/3] avutil/mem: Support limiting the heap usage
george at nsup.org
Mon Nov 21 18:00:33 EET 2016
Le primidi 1er frimaire, an CCXXV, Michael Niedermayer a écrit :
> With this it is possible to prevent OOM with untrusted media
> As this fundamentally requires keeping track of allocated memory sizes
> and the memalign hack code does nearly exactly that already, this feature
> depends on it being enabled.
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
It feels completely broken. It will not track memory allocated by
external libraries, it adds global state, it makes all allocations more
complex, it does not take the overhead of allocations into account, etc.
Linux has setrlimit(), I am quite sure other OSes have similar features.
Let applications use them.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: Digital signature
More information about the ffmpeg-devel