avcodec/truemotion2: Fix several integer overflows in tm2_motion_block()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jul 2019 21:00:09 +0000 (23:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jul 2019 18:35:07 +0000 (20:35 +0200)
commit9a353ea8766206bd302f3f12ca1d226237542908
tree00858cdd30b470a99b474ecd27e97ce68a5d2c46
parent1aad8937f73f9c8cc337e3173402f47175d077e7
avcodec/truemotion2: Fix several integer overflows in tm2_motion_block()

Fixes: 15524/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TRUEMOTION2_fuzzer-5173148372172800
Fixes: signed integer overflow: 13701388 - -2134868270 cannot be represented in type 'int'

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