diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-24 19:53:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-24 20:03:06 +0200 |
commit | bce362d36ccfe8f778662bcfd956187c958a39b5 (patch) | |
tree | 057ad36f6460e49dbbd13887017d7c01eef9e01a /libavcodec/wavpack.c | |
parent | 89325417e7b33f4b08171d9d609c48662d96b2d3 (diff) | |
download | ffmpeg-bce362d36ccfe8f778662bcfd956187c958a39b5.tar.gz |
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/wavpack.c')
-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; |