aboutsummaryrefslogtreecommitdiff
path: root/elf/setup-vdso.h
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2013-08-20 14:03:04 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2013-08-20 14:03:04 +0200
commitf315524e034cfc644157cb4af5ecc99f645dd067 (patch)
treea7453078fdc23e8b2995b495116c38897842a82c /elf/setup-vdso.h
parent1326ba1af22068db9488c2328bdaf852b8a93dcf (diff)
downloadglibc-f315524e034cfc644157cb4af5ecc99f645dd067.tar
glibc-f315524e034cfc644157cb4af5ecc99f645dd067.tar.gz
glibc-f315524e034cfc644157cb4af5ecc99f645dd067.tar.bz2
glibc-f315524e034cfc644157cb4af5ecc99f645dd067.zip
* elf/setup-vdso.h (setup_vdso): Fix missing string termination.
Diffstat (limited to 'elf/setup-vdso.h')
-rw-r--r--elf/setup-vdso.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/setup-vdso.h b/elf/setup-vdso.h
index a98dfeca33..056d885bd6 100644
--- a/elf/setup-vdso.h
+++ b/elf/setup-vdso.h
@@ -89,7 +89,7 @@ setup_vdso (struct link_map *main_map __attribute__ ((unused)),
addresses in the vsyscall DSO pages in writev() calls. */
const char *dsoname = ((char *) D_PTR (l, l_info[DT_STRTAB])
+ l->l_info[DT_SONAME]->d_un.d_val);
- size_t len = strlen (dsoname);
+ size_t len = strlen (dsoname) + 1;
char *copy = malloc (len);
if (copy == NULL)
_dl_fatal_printf ("out of memory\n");