diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-13 23:16:44 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-16 16:00:23 +0200 |
commit | d792783f5632abc508c49f2040d6a0ea51f36f91 (patch) | |
tree | 7ee49889b0c2e1e6cff0d650bbfd2a73849bf1e9 | |
parent | 536e29d4cf91c371216c5f2734e9c61054ee67d9 (diff) | |
download | ffmpeg-d792783f5632abc508c49f2040d6a0ea51f36f91.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>
(cherry picked from commit 86b1b0d33dd7459f0d9c352c51ee2e374fd6f7fe)
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 6eb263ba7d..1306cd6020 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -250,7 +250,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; } |