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>
Mon, 21 Jan 2019 06:53:25 +0000 (07:53 +0100)
commit98a9d868d19b67808b035d121b71e0edeb6269c4
tree2fdde75c34a8944eb486ee4de231283207f7988a
parentb66152a4e5e578c731f7e59e43f4db6b77d7c6d6
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