Skip to content

Commit 0e5b6a7

Browse files
committed
avcodec/aac/aacdec: Clear SFO on error
types and SFO become confused for a USAC stream Fixes: out of array access Fixes: 383854203/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-4996677847547904.fuzz 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 commit d1be369) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
1 parent 2e73647 commit 0e5b6a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libavcodec/aac/aacdec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1745,6 +1745,7 @@ int ff_aac_decode_ics(AACDecContext *ac, SingleChannelElement *sce,
17451745

17461746
return 0;
17471747
fail:
1748+
memset(sce->sfo, 0, sizeof(sce->sfo));
17481749
tns->present = 0;
17491750
return ret;
17501751
}

0 commit comments

Comments
 (0)