]> 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>
Thu, 31 Oct 2013 14:57:33 +0000 (09:57 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jan 2014 13:38:44 +0000 (08:38 -0500)
backport of f315524e034cfc644157cb4af5ecc99f645dd067

(cherry picked from commit f8a004f1fa412e3aae77faa30b4dfb654d721510)

elf/setup-vdso.h

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");