GP-0 Rtti fix for failing tests - missing null check in recent update.

This commit is contained in:
ghidra007
2026-02-20 19:59:39 +00:00
parent 9ce3e2431f
commit f2af386845
@@ -1569,6 +1569,12 @@ public class RTTIWindowsClassRecoverer extends RTTIClassRecoverer {
// it needs offset values and most are either large negatives (FFFFF....) or small offsets
// both of which are not valid addresses in a normal PE binary
Address referencedAddress = extendedFlatAPI.getPointer(address);
// if null then not an address so possibly valid
if (referencedAddress == null) {
return false;
}
// if is program memory location then invalid
if (program.getMemory().contains(referencedAddress)) {
return true;
}