mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-3441 Protect INDIRECT path to switch variable
This commit is contained in:
parent
7089e6de63
commit
0398e40b07
6 changed files with 116 additions and 2 deletions
|
@ -2926,7 +2926,7 @@ int4 RuleIndirectCollapse::applyOp(PcodeOp *op,Funcdata &data)
|
|||
}
|
||||
}
|
||||
else if (indop->isCall()) {
|
||||
if (op->isIndirectCreation())
|
||||
if (op->isIndirectCreation() || op->noIndirectCollapse())
|
||||
return 0;
|
||||
// If there are no aliases to a local variable, collapse
|
||||
if (!op->getOut()->hasNoLocalAlias())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue