avcodec/truemotion2: Fix 2 integer overflows in tm2_update_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 19 Apr 2019 23:05:44 +0000 (01:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 9 May 2019 09:27:34 +0000 (11:27 +0200)
commit430850d2f0152ff81bf060f40f23262673b1fdb5
tree3dc22c456a8e7bf3c27995891e8bafb07be53b2e
parent485546eec10a13cbacd17901f02794952d621f20
avcodec/truemotion2: Fix 2 integer overflows in tm2_update_block()

Fixes: signed integer overflow: -2147483648 + -1 cannot be represented in type 'int'
Fixes: 14107/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5694078680825856

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 f4a1b8d409639b2394589efe20ad55410cce391c)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/truemotion2.c