[FFmpeg-cvslog] avcodec/aacdec_template: Avoid undefined negation in imdct_and_windowing_eld()
Michael Niedermayer
git at videolan.org
Mon Mar 8 23:12:35 EET 2021
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Wed Jan 20 23:56:43 2021 +0100| [633924539aae73714facf31aa7001d01e8be48a1] | committer: Michael Niedermayer
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 at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=633924539aae73714facf31aa7001d01e8be48a1
---
libavcodec/aacdec_template.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c
index aa89f7cbb8..7b53b27616 100644
--- a/libavcodec/aacdec_template.c
+++ b/libavcodec/aacdec_template.c
@@ -2905,7 +2905,7 @@ static void imdct_and_windowing_ld(AACContext *ac, SingleChannelElement *sce)
static void imdct_and_windowing_eld(AACContext *ac, SingleChannelElement *sce)
{
- INTFLOAT *in = sce->coeffs;
+ UINTFLOAT *in = sce->coeffs;
INTFLOAT *out = sce->ret;
INTFLOAT *saved = sce->saved;
INTFLOAT *buf = ac->buf_mdct;
More information about the ffmpeg-cvslog
mailing list