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:
commit
ea08af4499
@ -1152,6 +1152,10 @@ static int generateFixFixOnly(FRAME_INFO *hSbrFrameInfo, int tranPosInternal,
|
|||||||
int nEnv, i, tranIdx;
|
int nEnv, i, tranIdx;
|
||||||
const int *pTable;
|
const int *pTable;
|
||||||
|
|
||||||
|
if (tranPosInternal >= numberTimeSlots) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
switch (numberTimeSlots) {
|
switch (numberTimeSlots) {
|
||||||
case 8:
|
case 8:
|
||||||
pTable = FDK_sbrDecoder_envelopeTable_8[tranPosInternal];
|
pTable = FDK_sbrDecoder_envelopeTable_8[tranPosInternal];
|
||||||
|
Loading…
Reference in New Issue
Block a user