mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-02-16 19:30:34 +01:00
Revert "Reapply: Avoid reading out of bounds due to too large aaIidIndexMapped"
This reverts commit 28fdc28ec436ceafb11ceb6a354e9916c5265981. It seems like this isn't needed any longer on the latest upstream version.
This commit is contained in:
parent
18aa41a0e7
commit
3e6e1b2097
@ -325,7 +325,7 @@ void initSlotBasedRotation(
|
|||||||
int env, int usb) {
|
int env, int usb) {
|
||||||
INT group = 0;
|
INT group = 0;
|
||||||
INT bin = 0;
|
INT bin = 0;
|
||||||
INT noIidSteps, noFactors;
|
INT noIidSteps;
|
||||||
|
|
||||||
FIXP_SGL invL;
|
FIXP_SGL invL;
|
||||||
FIXP_DBL ScaleL, ScaleR;
|
FIXP_DBL ScaleL, ScaleR;
|
||||||
@ -337,11 +337,9 @@ void initSlotBasedRotation(
|
|||||||
if (h_ps_d->bsData[h_ps_d->processSlot].mpeg.bFineIidQ) {
|
if (h_ps_d->bsData[h_ps_d->processSlot].mpeg.bFineIidQ) {
|
||||||
PScaleFactors = ScaleFactorsFine; /* values are shiftet right by one */
|
PScaleFactors = ScaleFactorsFine; /* values are shiftet right by one */
|
||||||
noIidSteps = NO_IID_STEPS_FINE;
|
noIidSteps = NO_IID_STEPS_FINE;
|
||||||
noFactors = NO_IID_LEVELS_FINE;
|
|
||||||
} else {
|
} else {
|
||||||
PScaleFactors = ScaleFactors; /* values are shiftet right by one */
|
PScaleFactors = ScaleFactors; /* values are shiftet right by one */
|
||||||
noIidSteps = NO_IID_STEPS;
|
noIidSteps = NO_IID_STEPS;
|
||||||
noFactors = NO_IID_LEVELS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* dequantize and decode */
|
/* dequantize and decode */
|
||||||
@ -360,11 +358,8 @@ void initSlotBasedRotation(
|
|||||||
|
|
||||||
/* ScaleR and ScaleL are scaled by 1 shift right */
|
/* ScaleR and ScaleL are scaled by 1 shift right */
|
||||||
|
|
||||||
ScaleL = ScaleR = 0;
|
|
||||||
if (noIidSteps + h_ps_d->specificTo.mpeg.pCoef->aaIidIndexMapped[env][bin] >= 0 && noIidSteps + h_ps_d->specificTo.mpeg.pCoef->aaIidIndexMapped[env][bin] < noFactors)
|
|
||||||
ScaleR = PScaleFactors[noIidSteps + h_ps_d->specificTo.mpeg.pCoef
|
ScaleR = PScaleFactors[noIidSteps + h_ps_d->specificTo.mpeg.pCoef
|
||||||
->aaIidIndexMapped[env][bin]];
|
->aaIidIndexMapped[env][bin]];
|
||||||
if (noIidSteps - h_ps_d->specificTo.mpeg.pCoef->aaIidIndexMapped[env][bin] >= 0 && noIidSteps - h_ps_d->specificTo.mpeg.pCoef->aaIidIndexMapped[env][bin] < noFactors)
|
|
||||||
ScaleL = PScaleFactors[noIidSteps - h_ps_d->specificTo.mpeg.pCoef
|
ScaleL = PScaleFactors[noIidSteps - h_ps_d->specificTo.mpeg.pCoef
|
||||||
->aaIidIndexMapped[env][bin]];
|
->aaIidIndexMapped[env][bin]];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user