mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-14 19:31:24 +00:00
avcodec/wavpack: Fix runtime error: left shift of negative value -5
Fixes: 729/clusterfuzz-testcase-5154831595470848 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
01a33b835f
commit
3016e919d4
@ -273,7 +273,7 @@ static inline int wv_get_value_integer(WavpackFrameContext *s, uint32_t *crc,
|
|||||||
unsigned bit;
|
unsigned bit;
|
||||||
|
|
||||||
if (s->extra_bits) {
|
if (s->extra_bits) {
|
||||||
S <<= s->extra_bits;
|
S *= 1 << s->extra_bits;
|
||||||
|
|
||||||
if (s->got_extra_bits &&
|
if (s->got_extra_bits &&
|
||||||
get_bits_left(&s->gb_extra_bits) >= s->extra_bits) {
|
get_bits_left(&s->gb_extra_bits) >= s->extra_bits) {
|
||||||
|
Loading…
Reference in New Issue
Block a user