avcodec/truemotion2: Fix multiple integer overflows in tm2_null_res_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 15 Aug 2019 21:22:50 +0000 (23:22 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Sep 2019 18:26:35 +0000 (20:26 +0200)
commit372c91b199ceead141802a46dc19ca8c11de68ac
tree165662ba40c6d77f15d7dee1ea6fe67608f22a42
parentba7ba6db7461ca39fc2a74a92f4f79b66e3b6029
avcodec/truemotion2: Fix multiple integer overflows in tm2_null_res_block()

Fixes: signed integer overflow: 1795032576 + 598344192 cannot be represented in type 'int'
Fixes: 16196/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5636723419119616

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