avcodec/truemotion2: Fix integer overflow in TM2_RECALC_BLOCK()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 Jan 2018 03:10:50 +0000 (04:10 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commita8ce9d518b2980e0ab2c6cbbc29e04a197e41f83
tree9337194e75d0832b3a784e52d35fbd09729a1724
parentdfb84488428bae5fe3aacecdb06f934c607a7e44
avcodec/truemotion2: Fix integer overflow in TM2_RECALC_BLOCK()

Fixes: signed integer overflow: 1477974040 - -1877995504 cannot be represented in type 'int'
Fixes: 4861/clusterfuzz-testcase-minimized-4570316383715328

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