diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-06-17 09:36:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-06-17 09:36:54 +0000 |
commit | 92e4472f1fe087c1d2c239b3de7f7348d1a5c933 (patch) | |
tree | 8270e8c4651bb15f5b669a0d6fe71811f038f4c1 /elf | |
parent | 0013b2b1dfeaee971eec0d0d16598166229d856b (diff) | |
download | glibc-92e4472f1fe087c1d2c239b3de7f7348d1a5c933.tar.gz glibc-92e4472f1fe087c1d2c239b3de7f7348d1a5c933.tar.xz glibc-92e4472f1fe087c1d2c239b3de7f7348d1a5c933.zip |
Update.
1999-06-17 Andreas Jaeger <aj@arthur.rhein-neckar.de> * elf/dl-load.c (_dl_init_paths): Add one more element to aelem to not write beyond allocated memory. Reported by John Reiser <jreiser@BitWagon.com>, closes PR libc/1167. 1999-06-17 Ulrich Drepper <drepper@cygnus.com> * malloc/mtrace.c: Keep lock while printing output lines. Patch by carsten.zimmermann@mediaways.net [PR libc/1166].
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 5ed5128ef5..a0448e9091 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -513,7 +513,7 @@ _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 ((sizeof (system_dirs_len) / sizeof (system_dirs_len[0])) + malloc ((sizeof (system_dirs_len) / sizeof (system_dirs_len[0]) + 1) * sizeof (struct r_search_path_elem *)); if (rtld_search_dirs == NULL) _dl_signal_error (ENOMEM, NULL, "cannot create search path array"); |