mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Fix AddressTableAnalyzer to recognize all undefined data types
This commit is contained in:
@@ -285,7 +285,7 @@ public class AddressTable {
|
||||
for (int k = 0; k < totalLen; k++) {
|
||||
Data data = listing.getDataContaining(currentAddress.addWrap(k));
|
||||
if (data == null ||
|
||||
(!(data.isPointer() || data.getDataType() instanceof Undefined) &&
|
||||
(!(data.isPointer() || Undefined.isUndefined(data.getDataType())) &&
|
||||
data.isDefined())) {
|
||||
return false;
|
||||
}
|
||||
@@ -1235,7 +1235,7 @@ public class AddressTable {
|
||||
}
|
||||
|
||||
// undefined data is OK, could be a pointer
|
||||
if (data.getDataType() instanceof Undefined) {
|
||||
if (Undefined.isUndefined(data.getDataType())) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -322,7 +322,7 @@ public class AddressTableAnalyzer extends AbstractAnalyzer {
|
||||
DataIterator definedData = program.getListing().getDefinedData(addrSet, true);
|
||||
for (Data data : definedData) {
|
||||
DataType dataType = data.getDataType();
|
||||
if (dataType instanceof Undefined) {
|
||||
if (Undefined.isUndefined(dataType)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user