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>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commit6850377b598c7540efa317476e30bc71fb0a1450
tree2ff3d16f31861731921e918831ad23dab59ad8ba
parent6aae60cc7da80c9c5c77634e412fbc52cc4677b2
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>
(cherry picked from commit 652ba72ed3124f201f98eea9bafb2232b535f549)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/jpeg2000dec.c