[FFmpeg-devel] [PATCH 0/1][TOOL][HACK] Allocation NULL check fuzzer

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Nov 26 02:14:31 EET 2017

2017-11-24 20:45 GMT+01:00 Derek Buitenhuis <derek.buitenhuis at gmail.com>:
> I've had this kicking around for like 4 years, maybe it can be of use to some people.
> I haven't done full scale fuzzing with this because laziness. I just sometimes run it
> when I'm bored. It's not thread-safe, but it would be trivial to make it so.
> It's based off my old LD_PRELOAD hack from here:
>     https://gist.github.com/dwbuiten/7101755
> Optionally takes two env vars, MALLOC_SEED (the seed), and MALLOC_FAILPROB for the
> probability of failing.
> I've been running it directly integrated inside FFmpeg's allocator because it makes
> it easier to run under gdb to find where it actually crashes, if the stack trace of
> the failure is not enough info/context.
> Currently FFmpeg has a lot of unchecked allocations - just one single FATE run with
> this found:

I am of course in favour of such checks but is there an allocator we support
that actually returns NULL on oom?

Carl Eugen

More information about the ffmpeg-devel mailing list