Skip to content

Ghidra is a software reverse engineering (SRE) framework

Fixed decompiler bug causing Ghidra to try to read data from the unique space

caheckman146a83f95358
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc
index f28eb06102..821eba0d49 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/jumptable.cc
@@ -1147,6 +1147,7 @@ void JumpBasic::findUnnormalized(uint4 maxaddsub,uint4 maxleftright,uint4 maxext
case CPUI_INT_SUB:
countaddsub += 1;
if (countaddsub > maxaddsub) break;
+ if (!normop->getIn(1-j)->isConstant()) break;
switchvn = testvn;
break;
case CPUI_INT_ZEXT: