Skip to content

Commit

Permalink
Fix expanding STB_GNU_UNIQUE hash table.
Browse files Browse the repository at this point in the history
An invalid symbol name pointer was entered into the hash table while
enlarging it.
  • Loading branch information
Andreas Schwab authored and Ulrich Drepper committed Aug 7, 2009
1 parent 3aa2588 commit 7bc513c
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 @@
2009-08-07 Andreas Schwab <schwab@redhat.com>

* elf/dl-lookup.c (do_lookup_x): Enter correct name into table of
unique symbols.

2009-08-05 H.J. Lu <hongjiu.lu@intel.com>

* sysdeps/x86_64/cacheinfo.c (init_cacheinfo): Properly use
Expand Down
2 changes: 1 addition & 1 deletion elf/dl-lookup.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ do_lookup_x (const char *undef_name, uint_fast32_t new_hash,
if (table[idx].name == NULL)
{
table[idx].hashval = hash;
table[idx].name = strtab + sym->st_name;
table[idx].name = name;
if ((type_class & ELF_RTYPE_CLASS_COPY) != 0)
{
table[idx].sym = ref;
Expand Down

0 comments on commit 7bc513c

Please sign in to comment.