1
0
mirror of https://github.com/mstorsjo/fdk-aac.git synced 2025-01-15 16:56:29 +01:00

Merge "libSBRdec: prevent OOB access"

This commit is contained in:
TreeHugger Robot 2019-03-08 10:27:16 +00:00 committed by Android (Google) Code Review
commit ea08af4499

View File

@ -1152,6 +1152,10 @@ static int generateFixFixOnly(FRAME_INFO *hSbrFrameInfo, int tranPosInternal,
int nEnv, i, tranIdx;
const int *pTable;
if (tranPosInternal >= numberTimeSlots) {
return 0;
}
switch (numberTimeSlots) {
case 8:
pTable = FDK_sbrDecoder_envelopeTable_8[tranPosInternal];