]> git.sesse.net Git - ffmpeg/commit
avcodec/mobiclip: Check quantizer before table setup
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 10 Sep 2020 21:59:53 +0000 (23:59 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 12 Sep 2020 13:17:43 +0000 (15:17 +0200)
commitbad8b17a3da219777341acafd3e3113ea2477484
tree4ec5969d15c22bdf3e3e2df9844dfb6c5e74f2f1
parentca49476ace90ddebc5f92d9d82297f77e528c21e
avcodec/mobiclip: Check quantizer before table setup

Fixes: index -1 out of bounds for type 'const uint8_t [6][16]'
Fixes: out of array read
Fixes: shift exponent -21 is negative
Fixes: 25422/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOBICLIP_fuzzer-5748258226569216
Fixes: shift exponent 8039082 is too large for 32-bit type 'int'
Fixes: 25430/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_MOBICLIP_fuzzer-5698567770210304
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mobiclip.c