[FFmpeg-devel] [PATCH] wavpack: Fix an integer overflow

Derek Buitenhuis derek.buitenhuis at gmail.com
Thu Mar 1 22:36:08 CET 2012


Integer Overflow Checker detected an integer
overflow while FATE was running.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 libavcodec/wavpack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 09d22be..3ba9961 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -428,7 +428,7 @@ static float wv_get_value_float(WavpackFrameContext *s, uint32_t *crc, int S)
         uint32_t u;
     } value;
 
-    int sign;
+    unsigned int sign;
     int exp = s->float_max_exp;
 
     if (s->got_extra_bits) {
-- 
1.7.9.1



More information about the ffmpeg-devel mailing list