avcodec/h264idct_template: Fix integer overflows in ff_h264_idct8_add()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 30 Oct 2017 22:21:41 +0000 (23:21 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 30 Dec 2017 20:11:31 +0000 (21:11 +0100)
commit6fb7e324fee1b26f5c0ff41eab81c0a0ddd49fe5
treea3c4cbb06cd71e0e52d2c434a05cfb8c0b92f914
parentfaa84a0c0667927b89f20f8c5af64129ccbb18ef
avcodec/h264idct_template: Fix integer overflows in ff_h264_idct8_add()

Fixes: runtime error: signed integer overflow: 924846844 + 1457520640 cannot be represented in type 'int'
Fixes: 3416/clusterfuzz-testcase-minimized-6125587682820096

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 2b739e1cb8f6ce8baead03ce5c999103ba78f24f)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264idct_template.c