Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-3075 Don't filter segment op from switch analysis

caheckman7149c92e4b86
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/funcdata_block.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/funcdata_block.cc
index 38d6a2da1a..83fafbc0a9 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/funcdata_block.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/funcdata_block.cc
@@ -577,6 +577,8 @@ bool Funcdata::earlyJumpTableFail(PcodeOp *op)
return false; // Don't try to back track through injection
if (dynamic_cast<JumpAssistOp *>(userOp) != (JumpAssistOp *)0)
return false;
+ if (dynamic_cast<SegmentOp *>(userOp) != (SegmentOp *)0)
+ return false;
if (outhit)
return true; // Address formed via uninjected CALLOTHER, analysis will fail
// Assume CALLOTHER will not interfere with address and continue backtracking