1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Method range check

This commit is contained in:
Brian Fiete 2022-02-24 05:35:58 -08:00
parent 252f790525
commit 4f8426d8f1

View file

@ -2452,6 +2452,9 @@ void BfModule::ExecuteCEOnCompile(CeEmitContext* ceEmitContext, BfTypeInstance*
if (!typeInstance->IsTypeMemberIncluded(methodDef->mDeclaringType, mCurTypeInstance->mTypeDef, this))
continue;
if (methodDef->mIdx >= typeInstance->mMethodInstanceGroups.mSize)
continue;
auto& methodInstanceGroup = typeInstance->mMethodInstanceGroups[methodDef->mIdx];
if (methodInstanceGroup.mDefaultCustomAttributes == NULL)
{