Fixed constant array bounds check regression
This commit is contained in:
parent
9117827cfc
commit
66dfe5df46
|
@ -1830,7 +1830,7 @@ void InterCodeBasicBlock::LoadConstantFold(InterInstruction* ins, InterInstructi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (offset >= 0 && offset * stride * (InterTypeSize[ins->mDst.mType] - 1) < lobj->mSize)
|
if (offset >= 0 && offset + stride * (InterTypeSize[ins->mDst.mType] - 1) < lobj->mSize)
|
||||||
{
|
{
|
||||||
data = lobj->mData + offset;
|
data = lobj->mData + offset;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue