avcodec/jpeg2000dec: Check nonzerobits more completely
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 16 Jun 2017 17:57:08 +0000 (19:57 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 16 Jun 2017 18:32:39 +0000 (20:32 +0200)
commitdfb61ea2630029b7aec7911aade769bf1a914eea
tree400767f60d5e2736bc3edec4685672135f2dfaf7
parent16d6cc2168b66c75a5dfe772d778360c2c8f3f5a
avcodec/jpeg2000dec: Check nonzerobits more completely

Fixes: runtime error: shift exponent 36 is too large for 32-bit type 'int'
Fixes: 2239/clusterfuzz-testcase-minimized-5639766592716800

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