diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-23 15:19:30 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-02-25 22:02:23 +0100 |
commit | 58f3469cc6df323ce82456e97cf584cbe70d6895 (patch) | |
tree | 0a48b917c7938b5a908ab9f9d08b212665a20f4a /libavcodec | |
parent | 5eb04570f6609d7e9706f2ce8b61119605e3a0a2 (diff) | |
download | ffmpeg-58f3469cc6df323ce82456e97cf584cbe70d6895.tar.gz |
avcodec/wavpack: Fix 280:22: runtime error: left shift of negative value -1
Fixes: 653/clusterfuzz-testcase-5773837415219200
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/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 eeee6a6ae4..ebcdd96508 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -264,7 +264,7 @@ error: static inline int wv_get_value_integer(WavpackFrameContext *s, uint32_t *crc, int S) { - int bit; + unsigned bit; if (s->extra_bits) { S <<= s->extra_bits; |