avcodec/h264idct_template: Fix integer overflows in ff_h264_idct8_add()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Nov 2017 00:19:20 +0000 (01:19 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 7 Dec 2017 22:38:06 +0000 (23:38 +0100)
commit56ce961cc3dd3b8a708d66f40360adcefeee3a28
tree169b84ac21f03c3818b01c003cc63ecafe662efa
parent3ca4f1868d66b8bae61dbf0bd78071aca8d61bb0
avcodec/h264idct_template: Fix integer overflows in ff_h264_idct8_add()

Fixes: runtime error: signed integer overflow: -503316480 + -2013265038 cannot be represented in type 'int'
Fixes: 3805/clusterfuzz-testcase-minimized-6578427831255040

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