GP-3783 Check for same VariableGroup before assigning partial Symbol

This commit is contained in:
caheckman 2023-08-25 15:33:47 +00:00
parent cb3d780fb8
commit 17eb87ebf7
3 changed files with 18 additions and 6 deletions

View file

@ -1022,6 +1022,8 @@ void Funcdata::linkProtoPartial(Varnode *vn)
if (rootVn == vn) return;
HighVariable *rootHigh = rootVn->getHigh();
if (!rootHigh->isSameGroup(high))
return;
Varnode *nameRep = rootHigh->getNameRepresentative();
Symbol *sym = linkSymbol(nameRep);
if (sym == (Symbol *)0) return;