avcodec/h264idct_template: Fix integer overflow in ff_h264_idct8_add
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Nov 2017 02:08:20 +0000 (03:08 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 7 Dec 2017 22:38:06 +0000 (23:38 +0100)
commit983d119c9b7342b9bf3dff737d520a426a6afd5b
treef608c3d66ba5b3d15011ae94a4624ec7b5577e20
parente56f691283f0a793c3ae00711e98e316649f9f49
avcodec/h264idct_template: Fix integer overflow in ff_h264_idct8_add

Fixes: signed integer overflow: 452986184 - -2113885312 cannot be represented in type 'int'
Fixes: 4196/clusterfuzz-testcase-minimized-5580648594014208

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