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>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit9a68341e9ee90e8f02d3aea7b8a981a867e8da14
tree13f5dde4a8dd54bc9f57a620707f917c023b0446
parentda081ecf69f4c46c6638abb28b0acac33c2be075
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>
(cherry picked from commit 62ad08cef993f7a103b6d3a5498f6fa49190e085)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/bink.c