avcodec/sbrdsp_fixed: Fix negation overflow in sbr_neg_odd_64_c()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 30 Jul 2021 21:04:08 +0000 (23:04 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 Aug 2021 16:05:13 +0000 (18:05 +0200)
commit8f2856a1daa4e3d5767b6efe7a70ec86926dba47
treebeb2e90caa93e0b2f4712925cadee89d35560a18
parentc2f5e9ff3c8141fe6a2c08f3cc4e46e17b96cbb4
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>
libavcodec/sbrdsp_fixed.c