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>
Tue, 30 Apr 2019 19:24:49 +0000 (21:24 +0200)
commitf4a1b8d409639b2394589efe20ad55410cce391c
tree8b7be54dca21f5217a4dd8e627d85d1073f1869d
parentb606493717db6424d693e1a944f51171e9e72905
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>
libavcodec/truemotion2.c