History

avcodec/aac/aacdec_usac: Clean ics2->max_sfb when first SCE fails

Fixes: out of array access Fixes: 70734/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-4741427068731392 Fixes: 383194070/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5302387708854272

Michael Niedermayer committed 2 years ago

Commit 682d7101 parent 1e76bd21 file · +3 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/aac/aacdec_usac.c+3−1
@@ -917,8 +917,10 @@ static int decode_usac_stereo_info(AACDecContext *ac, AACUSACConfig *usac, · 916 unmodified lines
917 }917 }
918 918
919 ret = setup_sce(ac, sce1, usac);919 ret = setup_sce(ac, sce1, usac);
920 if (ret < 0)920 if (ret < 0) {
921 ics2->max_sfb = 0;
921 return ret;922 return ret;
923 }
922 924
923 ret = setup_sce(ac, sce2, usac);925 ret = setup_sce(ac, sce2, usac);
924 if (ret < 0)926 if (ret < 0)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t