avcodec/shorten: Fix undefined integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 2 Jul 2018 17:08:54 +0000 (19:08 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:02:12 +0000 (19:02 +0200)
commitc4b23793d4fe679168ffba993ef1469491521233
tree866d844759bab381c7caf7f752bc108f6774752f
parente21e5c95c1ceeaf7ca2dd818fd334074ff0148f8
avcodec/shorten: Fix undefined integer overflow

Fixes: signed integer overflow: 8454144 * 256 cannot be represented in type 'int'
Fixes: 8788/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5728205041303552

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 70832333bba3b915040f415548518e136b44280e)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c