aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-13 23:16:44 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-13 23:17:18 +0200
commit86b1b0d33dd7459f0d9c352c51ee2e374fd6f7fe (patch)
tree8c9c348150ac2832d75feb576b7fd4d00abdc4f3 /libavcodec
parente3e51f8c14d22ae11684dcfe58df355f0f9e6401 (diff)
downloadffmpeg-86b1b0d33dd7459f0d9c352c51ee2e374fd6f7fe.tar.gz
avcodec/svq3: Fix runtime error: signed integer overflow: 169 * 12717677 cannot be represented in type 'int'
Fixes: 1556/clusterfuzz-testcase-minimized-5027865978470400 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/svq3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c
index c9d4160a1a..4814b80c3a 100644
--- a/libavcodec/svq3.c
+++ b/libavcodec/svq3.c
@@ -263,7 +263,7 @@ static void svq3_add_idct_c(uint8_t *dst, int16_t *block,
int i;
if (dc) {
- dc = 13 * 13 * (dc == 1 ? 1538 * block[0]
+ dc = 13 * 13 * (dc == 1 ? 1538U* block[0]
: qmul * (block[0] >> 3) / 2);
block[0] = 0;
}