avcodec/jpeg2000dsp: Fix multiple integer overflows in ict_int()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 8 Sep 2017 21:29:12 +0000 (23:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 11 Sep 2017 11:29:39 +0000 (13:29 +0200)
commit9bc5df5ec8b724d5b60857151fd320bbef6f8f90
tree2320f0a73d4a36c1ed127e4c8fb0f1955779ef86
parent03d8e9fec5c1f521bd31fcf8f56a9a54fb02743c
avcodec/jpeg2000dsp: Fix multiple integer overflows in ict_int()

Fixes: runtime error: signed integer overflow: 22553 * -188962 cannot be represented in type 'int'
Fixes: 3042/clusterfuzz-testcase-minimized-5174210131394560

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