diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-13 23:16:44 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-13 23:17:18 +0200 |
commit | 86b1b0d33dd7459f0d9c352c51ee2e374fd6f7fe (patch) | |
tree | 8c9c348150ac2832d75feb576b7fd4d00abdc4f3 | |
parent | e3e51f8c14d22ae11684dcfe58df355f0f9e6401 (diff) | |
download | ffmpeg-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>
-rw-r--r-- | libavcodec/svq3.c | 2 |
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; } |