1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-29 12:41:44 +02:00

(ia64_get_stacked): Make sure returned rnat-location is valid, too.

(Logical change 1.42)
This commit is contained in:
mostang.com!davidm 2003-01-23 18:47:51 +00:00
parent e30bf11e2c
commit 4368ea4a70

View file

@ -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);
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);
return ret;
}