Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-2288 Check for dead PcodeOps in gatherOpsAtAddress

caheckmanc1d5d764f9ee
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/dynamic.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/dynamic.cc
index 6653483938..eca50ac546 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/dynamic.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/dynamic.cc
@@ -668,6 +668,7 @@ void DynamicHash::gatherOpsAtAddress(vector<PcodeOp *> &opList,const Funcdata *f
enditer = fd->endOp(addr);
for(iter = fd->beginOp(addr); iter != enditer; ++iter) {
PcodeOp *op = (*iter).second;
+ if (op->isDead()) continue;
opList.push_back(op);
}
}