summaryrefslogtreecommitdiff
path: root/elf/dl-error.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-12-09 00:02:12 +0000
committerUlrich Drepper <drepper@redhat.com>2000-12-09 00:02:12 +0000
commit7b70fef6ae9e858f9d6b8a838dda1ee943dd6c35 (patch)
tree2eb4a9c98ac52d02390eccfa7baca3168c986008 /elf/dl-error.c
parent8b80182964bde1fa84333674e454d41e1fa0c8ca (diff)
downloadglibc-7b70fef6ae9e858f9d6b8a838dda1ee943dd6c35.tar.gz
Update.
2000-12-08 Jakub Jelinek <jakub@redhat.com> * elf/dl-open.c (_dl_open): If objname points right after errstring, allocate it together with errstring using alloca. * elf/dl-error.c (_dl_signal_error): If malloc failed, set objname to "", because it might point to local stack.
Diffstat (limited to 'elf/dl-error.c')
-rw-r--r--elf/dl-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-error.c b/elf/dl-error.c
index 1c6de64275..83d984f045 100644
--- a/elf/dl-error.c
+++ b/elf/dl-error.c
@@ -88,7 +88,7 @@ _dl_signal_error (int errcode, const char *objname, const char *errstring)
else
{
/* This is better than nothing. */
- lcatch->objname = objname;
+ lcatch->objname = "";
lcatch->errstring = _dl_out_of_memory;
}
longjmp (lcatch->env, errcode ?: -1);