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>
Sun, 24 Sep 2017 19:54:13 +0000 (21:54 +0200)
commit4f5eaf0b5956e492ee5023929669b1d09aaf6299
treeb31946c09c91a0015339930e381f1b96729b8d02
parent3dabb9c69db114b1f30c30e0a2788cffc50bac40
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>
libavcodec/proresdec2.c