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>
Sat, 7 Jul 2018 10:27:00 +0000 (12:27 +0200)
commit2f51a56ec9df85546cf9fc520252d0b87d0029cb
tree21a61d4caaca6cc3e35196ad25345c3d189ee27d
parente6db9900efaa2e2bc7286d9748a240325df0609b
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