1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-05 01:09:27 +01:00

Fix a warning message on i386

Without this, we may be accessing data beyond the array bounds.
This commit is contained in:
Arun Sharma 2009-10-23 22:38:11 -07:00
parent 3067acf172
commit d7089547e2

View file

@ -691,6 +691,7 @@ apply_reg_state (struct dwarf_cursor *c, struct dwarf_reg_state *rs)
stack-pointer wasn't saved, popping the CFA implicitly pops
the stack-pointer as well. */
if ((rs->reg[DWARF_CFA_REG_COLUMN].val == UNW_TDEP_SP)
&& (UNW_TDEP_SP < ARRAY_SIZE(rs->reg))
&& (rs->reg[UNW_TDEP_SP].where == DWARF_WHERE_SAME))
cfa = c->cfa;
else