[FFmpeg-devel] [PATCH 2/2] avcodec/utils: Require a non zero channels unless AV_CODEC_CAP_CHANNEL_CONF is set

Paul B Mahol onemda at gmail.com
Fri Sep 11 16:42:45 EEST 2020


On Thu, Sep 10, 2020 at 02:02:20PM +0200, Michael Niedermayer wrote:
> This avoids per codec checks for channels not being 0
> 
> 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
> Suggested-by: Paul B Mahol <onemda at gmail.com>
> See: [FFmpeg-devel] [PATCH 1/3] avcodec/fastaudio: Check channel
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavcodec/utils.c | 9 +++++++++
>  1 file changed, 9 insertions(+)

LGTM


More information about the ffmpeg-devel mailing list