GP-4763 Added check that ClassHierarchyDescriptor symbols are not in Global namespace. If they are skip processing it and the associated class.

This commit is contained in:
ghidra007 2024-07-17 16:44:40 +00:00
parent a00a4d75da
commit c2bf8d0464

View file

@ -868,7 +868,12 @@ public class RTTIWindowsClassRecoverer extends RTTIClassRecoverer {
// Get class name from class vftable is in
Namespace classNamespace = classHierarchyDescriptorSymbol.getParentNamespace();
if (classNamespace.isGlobal()) {
Msg.warn(this, "ClassHierarchyDescriptor at " + classHierarchyDescriptorAddress +
" is unexpectedly in the Global namespace so processing cannot continue for " +
"this class");
continue;
}
// get the data type category associated with the given class namespace
Category category = getDataTypeCategory(classNamespace);