mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-31 18:51:24 +08:00
GP-0 Rtti fix for failing tests - missing null check in recent update.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user