]> git.sesse.net Git - ffmpeg/commit
avcodec/adpcm: Check channels before use for ADPCM_PSX
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Oct 2020 20:09:10 +0000 (22:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Oct 2020 13:33:13 +0000 (15:33 +0200)
commit4ebe40ef6418995a888094f680eb2313850618d4
tree9970b4411937912555d83d5c70e164ffff4e38e4
parenta4895b75a3030d624fd15793e830543b94a0f29c
avcodec/adpcm: Check channels before use for ADPCM_PSX

Fixes: division by zero
Fixes: 26293/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_PSX_fuzzer-5176665237618688
Fixes: 26331/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ADPCM_PSX_fuzzer-5632330364092416
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/adpcm.c