mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
Merge remote-tracking branch 'origin/GP-3930_UnaliasedReturnFix' into patch
This commit is contained in:
commit
e08c039440
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ void ScopeLocal::checkUnaliasedReturn(const vector<uintb> &alias)
|
||||||
if (retOp == (PcodeOp *)0 || retOp->numInput() < 2) return;
|
if (retOp == (PcodeOp *)0 || retOp->numInput() < 2) return;
|
||||||
Varnode *vn = retOp->getIn(1);
|
Varnode *vn = retOp->getIn(1);
|
||||||
if (vn->getSpace() != space) return;
|
if (vn->getSpace() != space) return;
|
||||||
if (!vn->isMapped()) return;
|
// Assume vn is mapped. Cannot check vn->isMapped() as we are in the middle of restructuring.
|
||||||
vector<uintb>::const_iterator iter = lower_bound(alias.begin(),alias.end(),vn->getOffset());
|
vector<uintb>::const_iterator iter = lower_bound(alias.begin(),alias.end(),vn->getOffset());
|
||||||
if (iter != alias.end()) {
|
if (iter != alias.end()) {
|
||||||
// Alias is greater than or equal to vn offset
|
// Alias is greater than or equal to vn offset
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue