Ghidra is a software reverse engineering (SRE) framework
GP-7353 Check for size consistency in RuleSignForm
caheckman54ffbc94c063
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.ccindex 21c026852d..e01b1eed96 100644--- a/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/ruleaction.cc@@ -8466,6 +8466,7 @@ int4 RuleSignForm::applyOp(PcodeOp *op,Funcdata &data)if (sextop->code() != CPUI_INT_SEXT)return 0;a = sextop->getIn(0);+ if (a->getSize() != op->getOut()->getSize()) return 0;int4 c = op->getIn(1)->getOffset();if (c < a->getSize()) return 0;if (a->isFree()) return 0;