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>
Mon, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit6fdc61b8f6f1a8f7ded6fa858dd5b5fe69e0237e
tree4391b4eadc874c892367ae973f8263f15f1ceecb
parentf41da2bd5ff7d9d6b1141284dbd526d8b232e29b
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