]> git.sesse.net Git - ffmpeg/commit
avcodec/aacdec_template: Avoid undefined negation in imdct_and_windowing_eld()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 20 Jan 2021 22:56:43 +0000 (23:56 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 Mar 2021 21:08:49 +0000 (22:08 +0100)
commit633924539aae73714facf31aa7001d01e8be48a1
tree855523edeff6ce316a18889e3d450547f4a6bcdd
parent1957095e808b80cbe607347a6f23207d6318a48d
avcodec/aacdec_template: Avoid undefined negation in imdct_and_windowing_eld()

Fixes: negation of -2147483648 cannot be represented in type 'INTFLOAT' (aka 'int'); cast to an unsigned type to negate this value to itself
Fixes: 29057/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5642758933053440
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacdec_template.c