Fixed constant array bounds check regression

This commit is contained in:
drmortalwombat 2024-10-06 12:47:53 +02:00
parent 9117827cfc
commit 66dfe5df46

View File

@ -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;