Skip to content

Ghidra is a software reverse engineering (SRE) framework

Let RuleShiftAnd apply in more situations

caheckman451334568f32
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc
index db74047ec0..5f896d0722 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc
@@ -4919,7 +4919,6 @@ int4 RuleShiftAnd::applyOp(PcodeOp *op,Funcdata &data)
if (!shiftin->isWritten()) return 0;
PcodeOp *andop = shiftin->getDef();
if (andop->code() != CPUI_INT_AND) return 0;
- if (shiftin->loneDescend() != op) return 0;
Varnode *maskvn = andop->getIn(1);
if (!maskvn->isConstant()) return 0;
uintb mask = maskvn->getOffset();