Fixing analysis fail with function entryPoint may not be created on

defined data error (Closes #8238)
This commit is contained in:
Paul Hordiienko
2025-06-05 18:47:25 +02:00
committed by Ryan Kurtz
parent 54ba166144
commit 700a06e897

View File

@@ -150,7 +150,13 @@ public class ControlFlowGuard {
}
for (Address target : getFunctionAddressesFromTable(program, tableData)) {
AbstractProgramLoader.markAsFunction(program, null, target);
if (program.getListing().getDefinedDataAt(target) == null) {
AbstractProgramLoader.markAsFunction(program, null, target);
}
else {
log.appendMsg("Unable to mark Control Flow Guard function at " + target +
". Data is already defined there.");
}
}
}