diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-24 20:53:57 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-24 21:03:06 +0300 |
commit | bce362d36ccfe8f778662bcfd956187c958a39b5 (patch) | |
tree | 057ad36f6460e49dbbd13887017d7c01eef9e01a /libavcodec | |
parent | 89325417e7b33f4b08171d9d609c48662d96b2d3 (diff) |
avcodec/wavpack: Fix runtime error: left shift of negative value -1
Fixes: 1807/clusterfuzz-testcase-minimized-6258676199325696
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/wavpack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 74ca2d492c..103a416f28 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -310,7 +310,7 @@ static float wv_get_value_float(WavpackFrameContext *s, uint32_t *crc, int S) } if (S) { - S <<= s->float_shift; + S *= 1 << s->float_shift; sign = S < 0; if (sign) S = -S; |