Module: libav
Branch: master
Commit: f604eab30a7ec33e6d803a4d320ca9b453bde836

Author:    Derek Buitenhuis <[email protected]>
Committer: Kostya Shishkov <[email protected]>
Date:      Thu Mar  1 16:34:57 2012 -0500

wavpack: Fix an integer overflow

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

See: http://fate.libav.org/x86_64-linux-ioc/

Signed-off-by: Derek Buitenhuis <[email protected]>
Signed-off-by: Kostya Shishkov <[email protected]>

---

 libavcodec/wavpack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 6eb913f..022a4ce 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) {

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to