You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
avcodec/takdec: Fix integer overflow in decode_lpc()
Fixes: runtime error: signed integer overflow: 16748560 + 2143729712 cannot be represented in type 'int'
Fixes: 3202/clusterfuzz-testcase-minimized-4988291642294272
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 5d31f03a02
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@ -206,7 +206,7 @@ static void decode_lpc(int32_t *coeffs, int mode, int length)
|
|||||||
int a1 = *coeffs++;
|
int a1 = *coeffs++;
|
||||||
for (i = 0; i < length - 1 >> 1; i++) {
|
for (i = 0; i < length - 1 >> 1; i++) {
|
||||||
*coeffs += a1;
|
*coeffs += a1;
|
||||||
coeffs[1] += *coeffs;
|
coeffs[1] += (unsigned)*coeffs;
|
||||||
a1 = coeffs[1];
|
a1 = coeffs[1];
|
||||||
coeffs += 2;
|
coeffs += 2;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user