avcodec/shorten: Fix undefined addition in shorten_decode_frame()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 2 Jul 2018 17:11:46 +0000 (19:11 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit29c7a02bb2858e669441c642af3230db5f147f50
tree38d3c386dfc301d9b4c91946a1b867d9761d894e
parentb6af5c8880e1b60e5008326329d2e83b3901d638
avcodec/shorten: Fix undefined addition in shorten_decode_frame()

Fixes: signed integer overflow: 1139785606 + 1454196085 cannot be represented in type 'int'
Fixes: 8937/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-6202943597445120

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