aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-23 09:43:49 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-23 09:43:49 +0000
commit256846bb65357d2d564ec394394c235408eaf4a7 (patch)
treed3cf11f4e515f552a0d2fcd01e5137c324b89de3 /elf
parentd480547e995bccb6c33a166869897dd396357cef (diff)
downloadglibc-256846bb65357d2d564ec394394c235408eaf4a7.tar
glibc-256846bb65357d2d564ec394394c235408eaf4a7.tar.gz
glibc-256846bb65357d2d564ec394394c235408eaf4a7.tar.bz2
glibc-256846bb65357d2d564ec394394c235408eaf4a7.zip
Update.
1998-12-29 Geoff Keating <geoffk@ozemail.com.au> * sunrpc/Versions: Include _authenticate, it's defined in a user header (in fact, it's the whole contents of rpc/svc_auth.h). 1999-01-23 Ulrich Drepper <drepper@cygnus.com> * io/ftw.c (process_entry): Initialize flag since not all gcc versions are smart enough to see that this is no problem. * elf/dl-open.c (_dl_init_paths): Check malloc result. * csu/Versions: Add __frame_state_for.
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-load.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c
index 3e5e291018..cc3ac6e15e 100644
--- a/elf/dl-load.c
+++ b/elf/dl-load.c
@@ -1,5 +1,5 @@
/* Map in a shared object's segments from the file.
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -470,6 +470,8 @@ _dl_init_paths (const char *llp)
/* First set up the rest of the default search directory entries. */
aelem = rtld_search_dirs = (struct r_search_path_elem **)
malloc ((ncapstr + 1) * sizeof (struct r_search_path_elem *));
+ if (rtld_search_dirs == NULL)
+ _dl_signal_error (ENOMEM, NULL, "cannot create search path array");
round_size = ((2 * sizeof (struct r_search_path_elem) - 1
+ ncapstr * sizeof (enum r_dir_status))