mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-19 16:40:38 -09:00
GP-232 correct use of EXTERNAL block string
This commit is contained in:
@@ -1305,7 +1305,7 @@ public class RTTIGccClassRecoverer extends RTTIClassRecoverer {
|
|||||||
|
|
||||||
// if vtable is in external block don't try to create it because the full table isn't there
|
// if vtable is in external block don't try to create it because the full table isn't there
|
||||||
// but is external
|
// but is external
|
||||||
if (program.getMemory().getBlock(vtableAddress).getName().equals("EXTERNAL")) {
|
if (program.getMemory().isExternalBlockAddress(vtableAddress)) {
|
||||||
return vtableAddress;
|
return vtableAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3075,7 +3075,7 @@ public class RTTIGccClassRecoverer extends RTTIClassRecoverer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasExternalBlock() {
|
private boolean hasExternalBlock() {
|
||||||
MemoryBlock externalBlock = program.getMemory().getBlock("EXTERNAL");
|
MemoryBlock externalBlock = program.getMemory().getBlock(MemoryBlock.EXTERNAL_BLOCK_NAME);
|
||||||
if (externalBlock == null) {
|
if (externalBlock == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user