mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-08 10:50:02 +00:00
avcodec/takdec: Fix integer overflow in decorrelate()
Fixes: signed integer overflow: -2424832 - 2145653689 cannot be represented in type 'int'
Fixes: 16138/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-5643451346976768
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 f119273649)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
089b1e1677
commit
da76ca5551
1 changed files with 1 additions and 1 deletions
|
|
@ -653,7 +653,7 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
|
|||
s->residues[i ] * s->filter[0];
|
||||
}
|
||||
|
||||
v = av_clip_intp2(v >> 10, 13) * (1 << dshift) - *p1;
|
||||
v = av_clip_intp2(v >> 10, 13) * (1U << dshift) - *p1;
|
||||
*p1++ = v;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue