]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* elf/setup-vdso.h (setup_vdso): Fix missing string termination.
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Tue, 20 Aug 2013 12:03:04 +0000 (14:03 +0200)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Fri, 15 Nov 2013 13:56:11 +0000 (07:56 -0600)
ChangeLog
elf/setup-vdso.h

index cdcbd3d58d66b4e846287bd906ccd4db144bc77e..2ded8aead591a8f92b446f8e051580ae3bfdf9b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
+
 2013-08-16  Florian Weimer  <fweimer@redhat.com>
 
        [BZ #14699]
index a98dfeca33ced97edc19b1de6f3b1f589f2d3527..056d885bd66cefd80b2a6451000fe475c83e9a78 100644 (file)
@@ -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");