Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0 Fix for Thunk creation test failure

emteeread990c47f103
diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/analysis/DecompilerSwitchAnalyzer.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/analysis/DecompilerSwitchAnalyzer.java
index 31dedafb95..cd1d252e2f 100644
--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/analysis/DecompilerSwitchAnalyzer.java
+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/plugin/core/analysis/DecompilerSwitchAnalyzer.java
@@ -369,9 +369,11 @@ public class DecompilerSwitchAnalyzer extends AbstractAnalyzer {
// go ahead and place the reference, since it is a constant.
if (refType.isComputed() && refType.isFlow() &&
program.getMemory().contains(address)) {
- propogateCodeMode(context, address);
foundCount.incrementAndGet();
- return true;
+ // don't propagate low code mode, let something else do that
+ // propogateCodeMode(context, address);
+ // don't make references, let other analysis do this
+ //return true;
}
return false;
}