From bbfe13cce08b966afd48e3d909578afd5cda7f40 Mon Sep 17 00:00:00 2001 From: "hp.com!davidm" Date: Mon, 21 Apr 2003 23:14:14 +0000 Subject: [PATCH] (_UPT_reg_offset): Fix off-by-1 error. (Logical change 1.81) --- src/_UPT_internal.h | 2 +- src/_UPT_reg_offset.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_UPT_internal.h b/src/_UPT_internal.h index 310998e5..46a0279f 100644 --- a/src/_UPT_internal.h +++ b/src/_UPT_internal.h @@ -51,7 +51,7 @@ struct UPT_info #endif }; -HIDDEN int _UPT_reg_offset[UNW_REG_LAST]; +HIDDEN int _UPT_reg_offset[UNW_REG_LAST + 1]; extern HIDDEN unw_dyn_info_t *_UPTi_find_unwind_table (struct UPT_info *ui, unw_addr_space_t as, diff --git a/src/_UPT_reg_offset.c b/src/_UPT_reg_offset.c index d666c4cd..edd58bb4 100644 --- a/src/_UPT_reg_offset.c +++ b/src/_UPT_reg_offset.c @@ -33,7 +33,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ # include #endif -int _UPT_reg_offset[UNW_REG_LAST] = +int _UPT_reg_offset[UNW_REG_LAST + 1] = { #ifdef HAVE_ASM_PTRACE_OFFSETS_H # ifndef PT_AR_CSD