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, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit5ea8ce3b37747b0e255d40b486c20943262c2334
tree0f969c7f441b1bdf80a161a9a7255d0ca764e85f
parent08d736d5363e1ad9210f2067de3bedc9a9229b45
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