Skip to content

Commit

Permalink
Ignore negative dynamic entry types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schwab authored and Ulrich Drepper committed Jan 18, 2010
1 parent 64f3882 commit 7a033a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2010-01-18 Andreas Schwab <schwab@redhat.com>

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

2010-01-16 Jakub Jelinek <jakub@redhat.com>

* sysdeps/ieee754/ldbl-128/s_ceill.c (huge): Add L suffix to the
Expand Down
2 changes: 1 addition & 1 deletion elf/dynamic-link.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a033a8

Please sign in to comment.