Browse Source

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@gmail.com>
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
tags/n0.11
Derek Buitenhuis Kostya Shishkov 13 years ago
parent
commit
f604eab30a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/wavpack.c

+ 1
- 1
libavcodec/wavpack.c View File

@@ -428,7 +428,7 @@ static float wv_get_value_float(WavpackFrameContext *s, uint32_t *crc, int S)
uint32_t u; uint32_t u;
} value; } value;


int sign;
unsigned int sign;
int exp = s->float_max_exp; int exp = s->float_max_exp;


if (s->got_extra_bits) { if (s->got_extra_bits) {


Loading…
Cancel
Save