avcodec/jpeg2000dec: Fix undefined shift in the jpeg2000_decode_packets_po_iteration...
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 4 May 2018 17:18:25 +0000 (19:18 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 May 2018 19:02:04 +0000 (21:02 +0200)
commit652ba72ed3124f201f98eea9bafb2232b535f549
tree5c2f1cf8d4ce01f495afb63a398b9c28d1138b49
parenta96c131eb53b00de154f4773d96a3b323ea3daed
avcodec/jpeg2000dec: Fix undefined shift in the jpeg2000_decode_packets_po_iteration() CPRL case

Fixes: shift exponent 47 is too large for 32-bit type 'int'
Fixes: 7955/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_JPEG2000_fuzzer-6016721977606144

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c