Ghidra is a software reverse engineering (SRE) framework
Make sure EquateSymbols are locked
caheckmanfdf7121cc7e6
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/database.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/database.ccindex 1b4ec7b834..0821ced293 100644--- a/Ghidra/Features/Decompiler/src/decompile/cpp/database.cc+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/database.cc@@ -1969,6 +1969,12 @@ void ScopeInternal::clearUnlocked(void)if (sym->isSizeTypeLocked())resetSizeLockType(sym);}+ else if (sym->getCategory() == 1) {+ // Note we treat EquateSymbols as locked for purposes of this method+ // as a typelock (which traditionally prevents a symbol from being cleared)+ // does not make sense for an equate+ continue;+ }elseremoveSymbol(sym);}