Avoid passing NULL to DSO_FILENAME.

This commit is contained in:
Marcus Shawcroft 2013-11-13 12:40:31 +00:00
parent a615be4675
commit 50727aa76b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-11-13 Marcus Shawcroft <marcus.shawcroft@linaro.org>
* elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
set reference_name to "" to avoid passing NULL to DSO_FILENAME.
2013-11-13 Marcus Shawcroft <marcus.shawcroft@linaro.org>
* elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure

View File

@ -746,7 +746,7 @@ _dl_lookup_symbol_x (const char *undef_name, struct link_map *undef_map,
contain the needed symbol. This code is never reached
for unversioned lookups. */
assert (version != NULL);
const char *reference_name = undef_map ? undef_map->l_name : NULL;
const char *reference_name = undef_map ? undef_map->l_name : "";
/* XXX We cannot translate the message. */
_dl_signal_cerror (0, DSO_FILENAME (reference_name),