[FFmpeg-devel] [PATCH 1/3] avcodec/fastaudio: Check channels

Paul B Mahol onemda at gmail.com
Wed Sep 9 04:00:51 EEST 2020


On Tue, Sep 08, 2020 at 11:29:19PM +0200, Michael Niedermayer wrote:
> Fixes: division by 0
> Fixes: 25419/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FASTAUDIO_fuzzer-5632544761184256
> Fixes: 25433/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_FASTAUDIO_fuzzer-6215671900536832
> 
> Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/fastaudio.c | 3 +++
>  1 file changed, 3 insertions(+)
> 

This should be in generic path somehow. There are decoders that does not need this check
as they store number of channels in bitstream, but there are others that do not, and thus adding
this check for each and every one of them is not nice.


More information about the ffmpeg-devel mailing list