IL2CPP: Fix binary validation bug (typeDefinitionsSizes)
This commit is contained in:
@@ -283,9 +283,8 @@ namespace Il2CppInspector
|
||||
* typeRefPointers must be a series of pointers in __const
|
||||
* MethodInvokePointers must be a series of pointers in __text or .text, and in sequential order
|
||||
*/
|
||||
if (MetadataRegistration.typesCount < MetadataRegistration.typeDefinitionsSizesCount
|
||||
|| MetadataRegistration.genericMethodTableCount < MetadataRegistration.genericInstsCount
|
||||
|| CodeRegistration.reversePInvokeWrapperCount > 0x4000
|
||||
if ((Metadata != null && Metadata.Types.Length != MetadataRegistration.typeDefinitionsSizesCount)
|
||||
|| CodeRegistration.reversePInvokeWrapperCount > 0x10000
|
||||
|| CodeRegistration.unresolvedVirtualCallCount > 0x4000 // >= 22
|
||||
|| CodeRegistration.interopDataCount > 0x1000 // >= 23
|
||||
|| (Image.Version <= 24.1 && CodeRegistration.invokerPointersCount > CodeRegistration.methodPointersCount))
|
||||
|
||||
Reference in New Issue
Block a user