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>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commit122634a580dfecec51f6105205b144e60731ae78
tree902afc2fad712e85edeb0c8ce73ef8a9976678e1
parent4d9321136d7fc344166893153fc092fb821df961
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