mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/sbrdsp_fixed: Fix negation overflow in sbr_neg_odd_64_c()
Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself Fixes: 35593/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5182217725804544 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c2f5e9ff3c
commit
8f2856a1da
@ -87,7 +87,7 @@ static void sbr_neg_odd_64_c(int *x)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 1; i < 64; i += 2)
|
for (i = 1; i < 64; i += 2)
|
||||||
x[i] = -x[i];
|
x[i] = -(unsigned)x[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sbr_qmf_pre_shuffle_c(int *z)
|
static void sbr_qmf_pre_shuffle_c(int *z)
|
||||||
|
Loading…
Reference in New Issue
Block a user