mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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>
This commit is contained in:
parent
6e46f19cc8
commit
4ed535d79b
@ -206,7 +206,7 @@ void ff_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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user