GP-4934: Fixing potential ClassCasatException in

ExportDataDirectory.java
This commit is contained in:
Ryan Kurtz 2024-09-17 10:37:55 -04:00
parent 63a138dd12
commit 6931eb7019

View File

@ -216,7 +216,7 @@ public class ExportDataDirectory extends DataDirectory implements StructConverte
}
PeUtils.createData(program, address, IBO32, log);
Data data = program.getListing().getDataAt(address);
if (data == null) {
if (data == null || !(data.getDataType() instanceof IBO32DataType)) {
Msg.warn(this, "Invalid or missing data at " + address);
break;
}