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
|
* typeRefPointers must be a series of pointers in __const
|
||||||
* MethodInvokePointers must be a series of pointers in __text or .text, and in sequential order
|
* MethodInvokePointers must be a series of pointers in __text or .text, and in sequential order
|
||||||
*/
|
*/
|
||||||
if (MetadataRegistration.typesCount < MetadataRegistration.typeDefinitionsSizesCount
|
if ((Metadata != null && Metadata.Types.Length != MetadataRegistration.typeDefinitionsSizesCount)
|
||||||
|| MetadataRegistration.genericMethodTableCount < MetadataRegistration.genericInstsCount
|
|| CodeRegistration.reversePInvokeWrapperCount > 0x10000
|
||||||
|| CodeRegistration.reversePInvokeWrapperCount > 0x4000
|
|
||||||
|| CodeRegistration.unresolvedVirtualCallCount > 0x4000 // >= 22
|
|| CodeRegistration.unresolvedVirtualCallCount > 0x4000 // >= 22
|
||||||
|| CodeRegistration.interopDataCount > 0x1000 // >= 23
|
|| CodeRegistration.interopDataCount > 0x1000 // >= 23
|
||||||
|| (Image.Version <= 24.1 && CodeRegistration.invokerPointersCount > CodeRegistration.methodPointersCount))
|
|| (Image.Version <= 24.1 && CodeRegistration.invokerPointersCount > CodeRegistration.methodPointersCount))
|
||||||
|
|||||||
Reference in New Issue
Block a user