From 51445f61d36567b8f242b5dbef0df12a0fba9702 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Wed, 1 Feb 2012 14:22:57 +0200 Subject: [PATCH] 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. --- src/arm/Gex_tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/arm/Gex_tables.c b/src/arm/Gex_tables.c index 1fc3ea2b..d78fbaf4 100644 --- a/src/arm/Gex_tables.c +++ b/src/arm/Gex_tables.c @@ -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)