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>
Tue, 3 Jul 2018 23:10:28 +0000 (01:10 +0200)
commit70832333bba3b915040f415548518e136b44280e
tree4385eb9e068e0deab32a48245b01646845e10713
parent652d7c6348f96181fa69f8e2afb7b27a14c0a88a
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>
libavcodec/shorten.c