mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
Don't crash when dependencies are missing
This commit is contained in:
parent
6c8a2e88d1
commit
f2092faf2b
@ -1,6 +1,12 @@
|
||||
2011-02-17 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
[BZ #12454]
|
||||
* elf/dl-deps.c (_dl_map_object_deps): Signal error early when
|
||||
dependencies are missing.
|
||||
|
||||
2011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
Fix __if_freereq crash: Unlike the generic version which uses free,
|
||||
Fix __if_freereq crash: Unlike the generic version which uses free,
|
||||
Hurd needs munmap.
|
||||
* sysdeps/mach/hurd/ifreq.h: New file.
|
||||
|
||||
|
@ -491,6 +491,10 @@ _dl_map_object_deps (struct link_map *map,
|
||||
if (errno == 0 && errno_saved != 0)
|
||||
__set_errno (errno_saved);
|
||||
|
||||
if (errno_reason)
|
||||
_dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
|
||||
NULL, errstring);
|
||||
|
||||
struct link_map **old_l_initfini = NULL;
|
||||
if (map->l_initfini != NULL && map->l_type == lt_loaded)
|
||||
{
|
||||
@ -683,8 +687,4 @@ Filters not supported with LD_TRACE_PRELINKING"));
|
||||
}
|
||||
if (old_l_initfini != NULL)
|
||||
_dl_scope_free (old_l_initfini);
|
||||
|
||||
if (errno_reason)
|
||||
_dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
|
||||
NULL, errstring);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user