Merge pull request #8990 from unknownbrackets/reporting

Module: Don't report broken stubs from old states
This commit is contained in:
Henrik Rydgård 2016-09-18 18:27:25 +02:00 committed by GitHub
commit bcadd60eac

View File

@ -301,8 +301,17 @@ public:
}
} else {
// Older save state. Let's still reload, but this may not pick up new flags, etc.
bool foundBroken = false;
for (auto func : importedFuncs) {
ImportFunc(func, true);
if (func.moduleName[KERNELOBJECT_MAX_NAME_LENGTH] != '\0' || !Memory::IsValidAddress(func.stubAddr)) {
foundBroken = true;
} else {
ImportFunc(func, true);
}
}
if (foundBroken) {
ERROR_LOG(LOADER, "Broken stub import data while loading state");
}
}