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, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commit3f66c3386c2466c13562b8b0ac3943dac22bbfa1
tree857ecdf8972c7fc16f9d9b253444e3d7b1312fa3
parentc2d16aafbb1527d4b47ecfad659a381c22a017ba
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