mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
New guardStore
This commit is contained in:
parent
cb39d39a23
commit
171602e1ce
6 changed files with 42 additions and 16 deletions
|
@ -2805,6 +2805,13 @@ int4 RuleIndirectCollapse::applyOp(PcodeOp *op,Funcdata &data)
|
|||
if (!op->getOut()->hasNoLocalAlias())
|
||||
return 0;
|
||||
}
|
||||
else if (indop->usesSpacebasePtr()) {
|
||||
const LoadGuard *guard = data.getStoreGuard(indop);
|
||||
if (guard != (const LoadGuard *)0) {
|
||||
if (guard->isGuarded(op->getOut()->getAddr()))
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue