avcodec/jpeg2000dsp: Reorder operations in ict_int() to avoid 2 integer overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Jun 2017 13:06:21 +0000 (15:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 17 Jun 2017 21:34:49 +0000 (23:34 +0200)
commit0aa14c7f67b2483b76a685a5ed16ea44ec921f37
treeed947b21b97f3983abe7a44dbcf4712681db489f
parentba23d53710ec67c1a5499578a180a2ceb68c8ced
avcodec/jpeg2000dsp: Reorder operations in ict_int() to avoid 2 integer overflows

Fixes: runtime error: signed integer overflow: 58065 * 51981 cannot be represented in type 'int'
Fixes: 2271/clusterfuzz-testcase-minimized-5778297776504832

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