avcodec/h264idct_template: Fix integer overflow in ff_h264_idct_add()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 1 Aug 2017 17:56:07 +0000 (19:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Sep 2017 23:33:28 +0000 (01:33 +0200)
commitef8db67c92953e6222e0b42d8fbef4c70e1cba68
treef117938ea1060a19cc7ff8064482d095ef30df22
parentc55478835275240d67c8af9b22de2ecb7e65e444
avcodec/h264idct_template: Fix integer overflow in ff_h264_idct_add()

Fixes: runtime error: signed integer overflow: 26215360 + 2121330944 cannot be represented in type 'int'
Fixes: 2809/clusterfuzz-testcase-minimized-4785181833560064

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
(cherry picked from commit d1bfa80ec464d475a0de3f513bbb62bcd356099a)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264idct_template.c