Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-1839 Fix for FID ingest bug.

caheckman8a8fdbedc9da
diff --git a/Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/service/FidServiceLibraryIngest.java b/Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/service/FidServiceLibraryIngest.java
index 6a0888a031..b4a92b1c6f 100644
--- a/Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/service/FidServiceLibraryIngest.java
+++ b/Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/service/FidServiceLibraryIngest.java
@@ -54,12 +54,10 @@ class FidServiceLibraryIngest {
private LibraryRecord library = null; // Database record of the library we are creating
private CompilerSpec compilerSpec = null;
- private Map<FunctionRecord, Set<ChildSymbol>> unresolvedSymbols =
- new HashMap<>();
+ private Map<FunctionRecord, Set<ChildSymbol>> unresolvedSymbols = new HashMap<>();
private TreeSet<Long> globalUniqueFunction = new TreeSet<>();
private FidPopulateResult result = null;
- private TreeMap<String, FidPopulateResult.Count> childHistogram =
- new TreeMap<>(); // Counts of child references to function symbols
+ private TreeMap<String, FidPopulateResult.Count> childHistogram = new TreeMap<>(); // Counts of child references to function symbols
private static class FunctionRow {
public FunctionRecord functionRecord;
@@ -604,7 +602,8 @@ class FidServiceLibraryIngest {
return false;
}
if (compilerSpec != null) {
- if (!compilerSpec.equals(program.getCompilerSpec())) {
+ if (!compilerSpec.getCompilerSpecID()
+ .equals(program.getCompilerSpec().getCompilerSpecID())) {
throw new IllegalArgumentException(
"Program " + program.getName() + " has different compiler spec (" +
program.getCompilerSpec().getCompilerSpecID() +