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>
Thu, 21 Mar 2019 09:42:51 +0000 (10:42 +0100)
commit4b0d040e1837df21674815b0781baec80d577df2
tree325d96fc7f7c166fafb3edb098a1d038b08c03ad
parent5bdc1e51fd3a57e5259279c950c47301a0aeaf7b
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