mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-04-12 16:32:16 +02:00
ARM: fix unwind table search when IP less than first table entry
Properly return error when searching for unwind table entry for an IP that is less than the first available table entry.
This commit is contained in:
parent
ec4b23bf70
commit
51445f61d3
1 changed files with 1 additions and 1 deletions
|
@ -397,7 +397,7 @@ tdep_search_unwind_table (unw_addr_space_t as, unw_word_t ip,
|
|||
unw_word_t last = di->u.rti.table_data + di->u.rti.table_len - 8;
|
||||
unw_word_t entry, val;
|
||||
|
||||
if (prel31_to_addr (as, arg, first, &val) < 0 && ip < val)
|
||||
if (prel31_to_addr (as, arg, first, &val) < 0 || ip < val)
|
||||
return -UNW_ENOINFO;
|
||||
|
||||
if (prel31_to_addr (as, arg, last, &val) < 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue