avcodec/shorten: Fix integer overflow with offset
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 9 Nov 2018 18:59:27 +0000 (19:59 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 13 Nov 2018 21:28:27 +0000 (22:28 +0100)
commit2f888771cd1ce8d68d4b18a1009650c1f260aaf2
tree2f73a9f4039e5dc9968c8d265d9e24e5438d4a0c
parent6b4c9854daba2eac01716c3445eb68e6ab8758ba
avcodec/shorten: Fix integer overflow with offset

Fixes: signed integer overflow: -1625810908 - 582229060 cannot be represented in type 'int'
Fixes: 10977/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-5732602018267136

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