mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-10 06:02:09 +00:00
GP-4934: Fixing potential ClassCasatException in
ExportDataDirectory.java
This commit is contained in:
parent
63a138dd12
commit
6931eb7019
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user