IL2CPP: Add basic validation to found CodeGenModule pointer (#137)

This commit is contained in:
Katy Coe
2021-02-12 14:04:11 +01:00
parent 297b3016f8
commit cc0a0718df
2 changed files with 14 additions and 1 deletions

View File

@@ -164,6 +164,7 @@ namespace Il2CppInspector
public bool FindRegistrationStructs(double metadataVersion) {
Image.Version = metadataVersion;
StatusUpdate("Searching for binary metadata");
if (!((FindMetadataFromSymbols() ?? FindMetadataFromCode() ?? FindMetadataFromData()) is (ulong code, ulong meta)))
return false;