avcodec/svq3: Fix overflow in svq3_add_idct_c()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 18 Sep 2017 15:03:55 +0000 (17:03 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Oct 2017 15:34:42 +0000 (17:34 +0200)
commit4e341bd90411b98f395ea9744e90e00765f04e2b
treed56ed34d90e95c842c12414e86e0c5cd1f7a87e4
parentbf6cd808bed4060de3d30c729cc29feee5d6f47a
avcodec/svq3: Fix overflow in svq3_add_idct_c()

Fixes: runtime error: signed integer overflow: 2147392585 + 524288 cannot be represented in type 'int'
Fixes: 3348/clusterfuzz-testcase-minimized-4809500517203968

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