mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed sized array OOB check with undef index
This commit is contained in:
parent
eb9ad2b6c2
commit
c73968a515
1 changed files with 1 additions and 1 deletions
|
@ -22135,7 +22135,7 @@ void BfExprEvaluator::HandleIndexerExpression(BfIndexerExpression* indexerExpr,
|
|||
if (indexArgument.mValue.IsConst())
|
||||
{
|
||||
auto indexConst = mModule->mBfIRBuilder->GetConstant(indexArgument.mValue);
|
||||
if (indexConst->mUInt64 >= (uint64)sizedArrayType->mElementCount)
|
||||
if ((BfIRBuilder::IsIntable(indexConst->mTypeCode)) && (indexConst->mUInt64 >= (uint64)sizedArrayType->mElementCount))
|
||||
{
|
||||
if ((!mModule->IsInSpecializedSection()) && (checkedKind != BfCheckedKind_Unchecked))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue