[FFmpeg-devel] [PATCH 2/4] avcodec/vp3: Check allocations of VLCs

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Wed Oct 21 07:15:33 EEST 2020


Peter Ross:
> On Tue, Oct 20, 2020 at 09:53:53AM +0200, Andreas Rheinhardt wrote:
>> It would lead to crashs lateron if they failed.
> 
> did you find these automatically?
> 
> have previously used this tool tool to find such errors: https://github.com/ralight/mallocfail
> 

No, I just look at the code and afterwards confirm (or refute) my
suspicions by making a specific command fail (by adding av_max_alloc(1);
before and av_max_alloc(INT_MAX); after the call).
Automating this would be nice, of course.

- Andreas


More information about the ffmpeg-devel mailing list