avcodec/shorten: Fix multiple integer overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Jun 2018 11:19:35 +0000 (13:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Jun 2018 23:16:04 +0000 (01:16 +0200)
commit5d61400740842ad0b90528a0bce54e577d21e0d7
tree52d89fd2a8b50916d492ab0d6e20b6919bcb7b75
parent62e1c5db4acc208c09bba83ba6a964a20be04bd2
avcodec/shorten: Fix multiple integer overflows

Fixes: signed integer overflow: 3 * 1006632960 cannot be represented in type 'int'
Fixes: 8278/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5692857166856192

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f2abd36b3863188894fd21964c662b6c17268bfb)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c