mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 04:11:44 +08:00
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:
+6
-1
@@ -868,7 +868,12 @@ public class RTTIWindowsClassRecoverer extends RTTIClassRecoverer {
|
|||||||
|
|
||||||
// Get class name from class vftable is in
|
// Get class name from class vftable is in
|
||||||
Namespace classNamespace = classHierarchyDescriptorSymbol.getParentNamespace();
|
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
|
// get the data type category associated with the given class namespace
|
||||||
Category category = getDataTypeCategory(classNamespace);
|
Category category = getDataTypeCategory(classNamespace);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user