avcodec/wavpack: Check shift
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 20 Mar 2017 01:05:23 +0000 (02:05 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Mar 2017 19:54:27 +0000 (20:54 +0100)
commit423375d4f06ae7103e575a31c23e62e3ba440845
tree489cadd3e08adb0724872193d45962871eb5a6bc
parentb15818642b4e8c4ea61bf93bc6920e71a834a535
avcodec/wavpack: Check shift

Fixes: runtime error: shift exponent 255 is too large for 32-bit type 'unsigned int'
Fixes: 894/clusterfuzz-testcase-4841537823309824

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/wavpack.c