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, 8 Jul 2018 17:45:47 +0000 (19:45 +0200)
commiteba50bdadcbc0f6961a24b30330a7581a2821981
treee687b463c68be0b0085deb031cf2c8fd5508e92c
parent72aac791f1d4a316e1227abb6d81cc9c522301df
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