mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-23 08:40:29 +01:00
(ia64_get_stacked): Make sure returned rnat-location is valid, too.
(Logical change 1.42)
This commit is contained in:
parent
e30bf11e2c
commit
4368ea4a70
1 changed files with 6 additions and 2 deletions
|
@ -351,9 +351,13 @@ ia64_get_stacked (struct cursor *c, unw_word_t reg,
|
||||||
|
|
||||||
*locp = loc = ia64_rse_skip_regs (c->bsp, regs_to_skip);
|
*locp = loc = ia64_rse_skip_regs (c->bsp, regs_to_skip);
|
||||||
if (rnat_locp)
|
if (rnat_locp)
|
||||||
*rnat_locp = ia64_rse_rnat_addr (loc);
|
{
|
||||||
|
*rnat_locp = ia64_rse_rnat_addr (loc);
|
||||||
|
if (*rnat_locp >= rbs->end)
|
||||||
|
*rnat_locp = rbs->rnat_loc;
|
||||||
|
}
|
||||||
|
|
||||||
if (unlikely (loc >= rbs->end))
|
if (loc >= rbs->end)
|
||||||
ret = rbs_find_stacked (c, regs_to_skip, locp, rnat_locp);
|
ret = rbs_find_stacked (c, regs_to_skip, locp, rnat_locp);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue