public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Ignore negative dynamic entry types
@ 2010-01-18 12:57 Andreas Schwab
  0 siblings, 0 replies; only message in thread
From: Andreas Schwab @ 2010-01-18 12:57 UTC (permalink / raw)
  To: libc-hacker

2010-01-18  Andreas Schwab  <schwab@redhat.com>

	* elf/dynamic-link.h (elf_get_dynamic_info): Ignore negative
	dynamic entry types.

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)

Andreas.

-- 
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84  5EC7 45C6 250E 6F00 984E
"And now for something completely different."

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-18 12:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-18 12:57 [PATCH] Ignore negative dynamic entry types Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).