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>
Thu, 26 Oct 2017 15:34:42 +0000 (17:34 +0200)
commit4bc16930efdb56dc53caf615cec7085435bf10e0
treecb40038baba3abfe8d25edaafd83231deb7d5907
parentb5b52c0ca726200d64d1b7a547c06066719e2865
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