1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-28 12:11:45 +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:
Tommi Rantala 2012-02-01 14:22:57 +02:00 committed by Arun Sharma
parent ec4b23bf70
commit 51445f61d3

View file

@ -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)