avcodec/wavpack: Check value before shift in wp_exp2()
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 28 Feb 2017 21:07:38 +0000 (22:07 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 2 Mar 2017 02:16:15 +0000 (03:16 +0100)
commitf8060ab927f89db8844b1a0e0709159662e6167b
treeff5d1b611d4195dc931cd74f8e503f14eee8e1ab
parent12c3e120fe8f8d6881001eade390d8a5c185783d
avcodec/wavpack: Check value before shift in wp_exp2()

Fixes undefined shift, all callers should be changed to check the value
they use with wp_exp2() or its return value.

Fixes: 692/clusterfuzz-testcase-5757381516460032

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.h