avcodec/jpeg2000dsp: Fix integer overflows in ict_int()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jan 2018 03:12:57 +0000 (04:12 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Jan 2018 22:19:15 +0000 (23:19 +0100)
commitd89941aa89c995534948faa35887dcff19815f1c
treed6cba6543b966a1a3a7aa389f181b8f990afa302
parent3f86cc06808423b585d2f6a70ad3e252854a5d1a
avcodec/jpeg2000dsp: Fix integer overflows in ict_int()

Fixes: signed integer overflow: 46802 * -71230 cannot be represented in type 'int'
Fixes: 4756/clusterfuzz-testcase-minimized-4812495563784192

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