avcodec/proresdec2: Check bits in DECODE_CODEWORD(), fixes invalid shift
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 22 Sep 2017 18:45:28 +0000 (20:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Sep 2017 09:10:15 +0000 (11:10 +0200)
commit09913c5ec4cc03fbcf1dcebed00b148f41ed2aba
tree8fff880ca6db8eaff09d8549c947b182632291c3
parenta89a340e4f1b555efb0e41da30dae33a2337ac4b
avcodec/proresdec2: Check bits in DECODE_CODEWORD(), fixes invalid shift

Fixes: runtime error: shift exponent 42 is too large for 32-bit type 'unsigned int'
Fixes: 3410/clusterfuzz-testcase-minimized-5313377960198144

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 4f5eaf0b5956e492ee5023929669b1d09aaf6299)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/proresdec2.c