mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-18 04:00:36 +01:00
Avoid index-out-of-bounds in processDrcTime
Fixes: 17638/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBFDK_AAC_fuzzer-5699860921057280 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
This commit is contained in:
parent
5ab5496af9
commit
3b9dd6b614
@ -308,6 +308,8 @@ processDrcTime(HANDLE_DRC_GAIN_DECODER hGainDec, const int activeDrcIndex,
|
|||||||
pLinearNodeBuffer[pActiveDrc->lnbIndexForChannel[c][lnbIx] + b]);
|
pLinearNodeBuffer[pActiveDrc->lnbIndexForChannel[c][lnbIx] + b]);
|
||||||
else
|
else
|
||||||
pLnbPrevious = pDummyLnb;
|
pLnbPrevious = pDummyLnb;
|
||||||
|
if (pLnbPrevious->nNodes[lnbIx] <= 0 || pLnbPrevious->nNodes[lnbIx] > 16)
|
||||||
|
return DE_NOT_OK;
|
||||||
nodePrevious =
|
nodePrevious =
|
||||||
pLnbPrevious->linearNode[lnbIx][pLnbPrevious->nNodes[lnbIx] - 1];
|
pLnbPrevious->linearNode[lnbIx][pLnbPrevious->nNodes[lnbIx] - 1];
|
||||||
nodePrevious.time -= hGainDec->frameSize;
|
nodePrevious.time -= hGainDec->frameSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user