Fix AddressTableAnalyzer to recognize all undefined data types

This commit is contained in:
Meow
2026-07-21 20:38:21 +02:00
parent ae7432b8bf
commit 0299e66dad
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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;
}