From 7a033a828df19b4f3bfd7e4d66102f63d1167f08 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 18 Jan 2010 07:23:23 -0800 Subject: [PATCH] Ignore negative dynamic entry types. --- ChangeLog | 5 +++++ elf/dynamic-link.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d1dcbad..011f445 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-01-18 Andreas Schwab + + * elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative + dynamic entry types. + 2010-01-16 Jakub Jelinek * sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h index c34cbcd..dff0655 100644 --- a/elf/dynamic-link.h +++ b/elf/dynamic-link.h @@ -113,7 +113,7 @@ elf_get_dynamic_info (struct link_map *l, ElfW(Dyn) *temp) while (dyn->d_tag != DT_NULL) { - if (dyn->d_tag < DT_NUM) + if ((Elf32_Word) dyn->d_tag < DT_NUM) info[dyn->d_tag] = dyn; else if (dyn->d_tag >= DT_LOPROC && dyn->d_tag < DT_LOPROC + DT_THISPROCNUM) -- 2.7.4