avcodec/truemotion2: Fix integer overflows in tm2_high_chroma()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Sep 2017 16:54:06 +0000 (18:54 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commit39291059134ab29e3d156843a846c8bba55a8ed0
tree4011e61b8b6f1b77d4a1b5a6db6c997b37a42b8e
parent1ad7bbfd210d072a7f0fc3ee22b00a8e665a65dc
avcodec/truemotion2: Fix integer overflows in tm2_high_chroma()

Fixes: runtime error: signed integer overflow: -1408475220 + -1408475220 cannot be represented in type 'int'
Fixes: 3336/clusterfuzz-testcase-minimized-5656839179993088

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