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>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commit66fd3de40ab02d757545017200cb45233d523179
tree06fa4f6e5d2a3f73789055f74dec9d7e34ab29f6
parenta0f854b5ffbd8ccb0d6f7caa666abd02efc1c9e3
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