[FFmpeg-devel] [PATCH 2/4] avcodec/wavpack: Fix 280:22: runtime error: left shift of negative value -1
Michael Niedermayer
michael at niedermayer.cc
Thu Feb 23 16:19:30 EET 2017
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 at niedermayer.cc>
---
libavcodec/wavpack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
2.11.0
More information about the ffmpeg-devel
mailing list