Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-2515 LoadGuard segment support

caheckman8cae54c18b51
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/heritage.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/heritage.cc
index dd3b411738..cf11767b67 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/heritage.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/heritage.cc
@@ -973,6 +973,11 @@ bool Heritage::discoverIndexedStackPointers(AddrSpace *spc,vector<PcodeOp *> &fr
}
break;
}
+ case CPUI_SEGMENTOP:
+ {
+ if (op->getIn(2) != curNode.vn) break; // Check that stackpointer comes in as inner pointer
+ // Treat output as having the same offset, fallthru to COPY
+ }
case CPUI_INDIRECT:
case CPUI_COPY:
{