avcodec/jpeg2000: Fix runtime error: signed integer overflow: 4185 + 2147483394 canno...
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 May 2017 12:00:30 +0000 (14:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Jun 2017 21:16:54 +0000 (23:16 +0200)
commit65f38d1285f30f277c6ec3b248eb7402a0fbb3d3
treefa26986b4e7a004eaa9318a2fcadbbacc5198365
parent0103b3ea924c1447006584b0dc6234bcd0113c00
avcodec/jpeg2000: Fix runtime error: signed integer overflow: 4185 + 2147483394 cannot be represented in type 'int'

Fixes: 1870/clusterfuzz-testcase-minimized-4686788029317120

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 781f88bb26534ececc76eaa972f02536ba2f0f55)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000.h