diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-13 23:16:44 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-14 12:20:16 +0200 |
commit | ea57abac8d9243d8367e274d088e80244b00ff81 (patch) | |
tree | 8c61079b29715aefa135c9262122a9ccd2f4b4b9 | |
parent | 2366285207877ec3e42b4c655a42d5b468d7b5b4 (diff) | |
download | ffmpeg-ea57abac8d9243d8367e274d088e80244b00ff81.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 b10c020258..0cea14edcb 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; } |