aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-28 12:56:25 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-28 12:57:14 +0200
commitc51357d206f2ad58c9d9610cf85b6ea5dd88f501 (patch)
treebc2714fe16399c20ff669b5d4fe0e1181d976317 /libavcodec
parent6c3a63fc3d1be7ac947e38a165a299c9e5d37764 (diff)
downloadffmpeg-c51357d206f2ad58c9d9610cf85b6ea5dd88f501.tar.gz
avcodec/wavpack: Fix runtime error: signed integer overflow: -1386217472 * 4 cannot be represented in type 'int'
Fixes: 1853/clusterfuzz-testcase-minimized-5471155626442752 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')
-rw-r--r--libavcodec/wavpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c
index 3b3c6b2d16..8c621500b7 100644
--- a/libavcodec/wavpack.c
+++ b/libavcodec/wavpack.c
@@ -310,7 +310,7 @@ static float wv_get_value_float(WavpackFrameContext *s, uint32_t *crc, int S)
}
if (S) {
- S *= 1 << s->float_shift;
+ S *= 1U << s->float_shift;
sign = S < 0;
if (sign)
S = -S;