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, 4 Oct 2017 00:16:11 +0000 (02:16 +0200)
commit44874b4f5ec2c605c70393573b9d85540ebc2d81
tree19aed1ebcb7ac19d6bd30c803650f30b7682ae5e
parentdcf9bae4a93f54cb5767bc97db4a809efd396f8b
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>
libavcodec/truemotion2.c