avcodec/bink: Fix integer overflow in unquantize_dct_coeffs()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 18 Jun 2019 12:28:17 +0000 (14:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 26 Jun 2019 17:05:29 +0000 (19:05 +0200)
commit62ad08cef993f7a103b6d3a5498f6fa49190e085
treece38412a01cbdde0d21a18135a5817bdef013b68
parent1889e3166cc5780780d7f40ac2271e5308f32b8e
avcodec/bink: Fix integer overflow in unquantize_dct_coeffs()

Fixes: signed integer overflow: -3447 * 2883584 cannot be represented in type 'int'
Fixes: 15265/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_BINK_fuzzer-5088311799971840

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Peter Ross <pross@xvid.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bink.c