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, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commitc10babcadc341b8bec6b16572e4373ae571af7e7
treea1025cb1cca6d7f23b9aa967a0b35a9d874ed931
parent4e9e1ab815c525471bf51f31e05a708bd6c74a82
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