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>
Sun, 24 Mar 2019 09:38:51 +0000 (10:38 +0100)
commite8aaadd41ea508ab1e0f28b2bf68b3433d041b9e
treed1deba936d9f70b4e0c5fc6da9a618b594c93065
parenta6e6b866694ea1d8627e392f138a1029d9e54a19
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>
(cherry picked from commit 2f888771cd1ce8d68d4b18a1009650c1f260aaf2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c