Check original name in IsolateVariableTask

This commit is contained in:
caheckman 2020-01-21 17:26:54 -05:00
parent a3988a7db2
commit cbcfaf54fa
4 changed files with 29 additions and 34 deletions

View file

@ -1252,9 +1252,10 @@ void ScopeLocal::recoverNameRecommendationsForSymbols(void)
if (vn == (Varnode *)0) continue;
sym = vn->getHigh()->getSymbol();
if (sym == (Symbol *)0) continue;
if ((sym->getFlags() & Varnode::addrtied)!=0)
continue; // Cannot use untied varnode as primary map for address tied symbol
SymbolEntry *entry = sym->getFirstWholeMap();
if (entry->getAddr() != addr)
continue;
// entry->getAddr() does not need to match address of the recommendation
if (entry->getSize() != size) continue;
}
if (!sym->isNameUndefined()) continue;