avcodec/truemotion2: Fix overflow in tm2_apply_deltas()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Jun 2018 00:09:59 +0000 (02:09 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 6 Jun 2018 14:58:08 +0000 (16:58 +0200)
commit79c6047c3668c639f717b3a7001a34dddba0ede2
treeb456346dc0cddfaf8c0b8ba66b23a8e46b2db053
parentad94f1c8abe68a2b38536cc96a31327c6be7b105
avcodec/truemotion2: Fix overflow in tm2_apply_deltas()

Fixes: signed integer overflow: 1077952576 + 1077952576 cannot be represented in type 'int'
Fixes: 7712/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5056281753681920

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion2.c