[FFmpeg-cvslog] avcodec/wavpack: Fix 280:22: runtime error: left shift of negative value -1

Michael Niedermayer git at videolan.org
Sat Feb 25 23:17:38 EET 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Feb 23 15:19:30 2017 +0100| [58f3469cc6df323ce82456e97cf584cbe70d6895] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=58f3469cc6df323ce82456e97cf584cbe70d6895
---

 libavcodec/wavpack.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index eeee6a6..ebcdd96 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;



More information about the ffmpeg-cvslog mailing list