avcodec/jpeg2000dwt: Fix integer overflow in dwt_decode97_int()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 18 Feb 2019 23:05:51 +0000 (00:05 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Mar 2019 09:38:51 +0000 (10:38 +0100)
commit7a25b3192de6f91e2ae721ede46f6a5a2f48a550
tree6b3aa0b560ba049cdc3cbde3eedf1bb94801d76f
parent902c96ae16a0a1935388d22cd2f9e916262811a6
avcodec/jpeg2000dwt: Fix integer overflow in dwt_decode97_int()

Fixes: runtime error: signed integer overflow: 2147483598 + 128 cannot be represented in type 'int'
Fixes: 12926/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-5705100733972480

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