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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit162bbc22e2032db4bf9fc3aadeb9b4e05924e76b
treeef9d5d2346fde9319ec336f1d2f862c2f5862047
parent60bc7a6ec08a662c02e10eb1660d15e2a65ff0f5
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