History

avcodec/aac/aacdec: use correct index in deallocation

Fixes: memleak Fixes: 71084/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5857751899635712

Michael Niedermayer committed 2 years ago

Commit 36924fa1 parent 9d25b961 file · +1 −1Browse files

Unified · Split

libavcodec/aac/aacdec.c+1−1
@@ -1104,7 +1104,7 @@ static av_cold int decode_close(AVCodecContext *avctx) · 1103 unmodified lines
1104 OutputConfiguration *oc = &ac->oc[i];1104 OutputConfiguration *oc = &ac->oc[i];
1105 AACUSACConfig *usac = &oc->usac;1105 AACUSACConfig *usac = &oc->usac;
1106 for (int j = 0; j < usac->nb_elems; j++) {1106 for (int j = 0; j < usac->nb_elems; j++) {
1107 AACUsacElemConfig *ec = &usac->elems[i];1107 AACUsacElemConfig *ec = &usac->elems[j];
1108 av_freep(&ec->ext.pl_data);1108 av_freep(&ec->ext.pl_data);
1109 }1109 }
1110 }1110 }

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