diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-23 02:58:48 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-23 04:03:04 +0300 |
commit | 24e95f9d4de012f51fdd5767dff0b3142e13ec3a (patch) | |
tree | 15f5d6d102e273f90b6ef679f066bb8e0b7a1686 /libavcodec/wavpack.c | |
parent | 0c2ef4f6b4d52a7b7184c747ffea3576926ea1b1 (diff) |
avcodec/wavpack: Fix integer overflow
Fixes: runtime error: signed integer overflow: 227511904 + 1964113935 cannot be represented in type 'int'
Fixes: 2331/clusterfuzz-testcase-minimized-6182185830711296
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r-- | libavcodec/wavpack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index ac43c13da5..e127c272a9 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -225,7 +225,7 @@ static int wv_get_value(WavpackFrameContext *ctx, GetBitContext *gb, INC_MED(1); DEC_MED(2); } else { - base = GET_MED(0) + GET_MED(1) + GET_MED(2) * (t - 2); + base = GET_MED(0) + GET_MED(1) + GET_MED(2) * (t - 2U); add = GET_MED(2) - 1; INC_MED(0); INC_MED(1); |