mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2000-05-09 Jakub Jelinek <jakub@redhat.com> * elf/dl-sym.c (_dl_sym): Test ref not result for non-zero. (_dl_vsym): Likewise. Reported by Owen Taylor <otaylor@redhat.com>. * elf/dl-deps.c (_dl_map_object_deps): Zero terminate L->l_initfini always.
This commit is contained in:
@ -465,7 +465,7 @@ _dl_map_object_deps (struct link_map *map,
|
||||
|
||||
/* Store the search list we built in the object. It will be used for
|
||||
searches in the scope of this object. */
|
||||
map->l_searchlist.r_list = malloc ((2 * nlist
|
||||
map->l_searchlist.r_list = malloc ((2 * nlist + 1
|
||||
+ (nlist == nduplist ? 0 : nduplist))
|
||||
* sizeof (struct link_map *));
|
||||
if (map->l_searchlist.r_list == NULL)
|
||||
@ -549,4 +549,6 @@ _dl_map_object_deps (struct link_map *map,
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Terminate the list of dependencies. */
|
||||
map->l_initfini[nlist] = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user