[FFmpeg-cvslog] wavpack: Fix an integer overflow
Derek Buitenhuis
git at videolan.org
Sat Mar 3 00:38:29 CET 2012
ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Thu Mar 1 16:34:57 2012 -0500| [f604eab30a7ec33e6d803a4d320ca9b453bde836] | committer: Kostya Shishkov
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 <derek.buitenhuis at gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f604eab30a7ec33e6d803a4d320ca9b453bde836
---
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) {
More information about the ffmpeg-cvslog
mailing list