mirror of https://github.com/mstorsjo/fdk-aac.git
Fix out of bound memory access in lppTransposer am: 6d3dd40e20
am: 2a7b438754
am: fca1027937
am: d8e897ae9e
am: 6e15baff97
am: 06c27a9feb
am: e6b649a380
am: 902decfc99
am: 77aac03fb6
am: 5a2ae5cc27
am: 117691fe59
Change-Id: I28274f0fce7de6992f0c60c000bbecb0f21a3535
This commit is contained in:
commit
60c9a6e4c7
|
@ -293,7 +293,7 @@ void lppTransposer (HANDLE_SBR_LPP_TRANS hLppTrans, /*!< Handle of lpp transp
|
|||
}
|
||||
|
||||
/* init bwIndex for each patch */
|
||||
FDKmemclear(bwIndex, pSettings->noOfPatches*sizeof(INT));
|
||||
FDKmemclear(bwIndex, MAX_NUM_PATCHES*sizeof(INT));
|
||||
|
||||
/*
|
||||
Calc common low band scale factor
|
||||
|
@ -621,9 +621,9 @@ void lppTransposer (HANDLE_SBR_LPP_TRANS hLppTrans, /*!< Handle of lpp transp
|
|||
FDK_ASSERT( hiBand < (64) );
|
||||
|
||||
/* bwIndex[patch] is already initialized with value from previous band inside this patch */
|
||||
while (hiBand >= pSettings->bwBorders[bwIndex[patch]])
|
||||
while (hiBand >= pSettings->bwBorders[bwIndex[patch]] && bwIndex[patch] < MAX_NUM_PATCHES-1) {
|
||||
bwIndex[patch]++;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
Filter Step 2: add the left slope with the current filter to the buffer
|
||||
|
@ -962,6 +962,10 @@ resetLppTransposer (HANDLE_SBR_LPP_TRANS hLppTrans, /*!< Handle of lpp transpos
|
|||
for(i = 0 ; i < noNoiseBands; i++){
|
||||
pSettings->bwBorders[i] = noiseBandTable[i+1];
|
||||
}
|
||||
for (;i < MAX_NUM_NOISE_VALUES; i++) {
|
||||
pSettings->bwBorders[i] = 255;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Choose whitening factors
|
||||
|
|
Loading…
Reference in New Issue