mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/aacsbr_fixed: Fix integer overflow in sbr_hf_assemble()
Fixes: runtime error: signed integer overflow: 2052929346 + 204817098 cannot be represented in type 'int' This was missed inb1bef755f6
Fixes: 5275/clusterfuzz-testcase-minimized-5367635958038528 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 commitc837918f50
) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
23f13130f1
commit
0e5946d5b2
@ -571,7 +571,7 @@ static void sbr_hf_assemble(int Y1[38][64][2],
|
|||||||
int idx = indexsine&1;
|
int idx = indexsine&1;
|
||||||
int A = (1-((indexsine+(kx & 1))&2));
|
int A = (1-((indexsine+(kx & 1))&2));
|
||||||
int B = (A^(-idx)) + idx;
|
int B = (A^(-idx)) + idx;
|
||||||
int *out = &Y1[i][kx][idx];
|
unsigned *out = &Y1[i][kx][idx];
|
||||||
int shift;
|
int shift;
|
||||||
unsigned round;
|
unsigned round;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user