History

avcodec/aac/aacdec_usac: Limit sfo from noise offset to be above -200

Fixes: out of array read Fixes: 397731127/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_LATM_fuzzer-5577772965101568

Michael Niedermayer committed 1 year ago

Commit d643a5b1 parent 01a1b991 file · +3 −2Browse files

Unified · Split

libavcodec/aac/aacdec_usac.c+3−2
@@ -1023,8 +1023,9 @@ static void apply_noise_fill(AACDecContext *ac, SingleChannelElement *sce, · 1022 unmodified lines
10231023 }
10241024 }
10251025
1026− if (band_quantized_to_zero)
1027− sce->sfo[g*ics->max_sfb + sfb] += noise_offset;
1026+ if (band_quantized_to_zero) {
1027+ sce->sfo[g*ics->max_sfb + sfb] = FFMAX(sce->sfo[g*ics->max_sfb + sfb] + noise_offset, -200);
1028+ }
10281029 }
10291030 coef += g_len << 7;
10301031 }

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