From: Andreas Arnez Date: Thu, 31 Oct 2013 14:57:33 +0000 (-0500) Subject: * elf/setup-vdso.h (setup_vdso): Fix missing string termination. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8a004f1fa412e3aae77faa30b4dfb654d721510;p=thirdparty%2Fglibc.git * elf/setup-vdso.h (setup_vdso): Fix missing string termination. backport of f315524e034cfc644157cb4af5ecc99f645dd067 --- diff --git a/ChangeLog b/ChangeLog index 3a6ce4780ac..9ad07190e0a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-08-20 Andreas Arnez + + * elf/setup-vdso.h (setup_vdso): Fix missing string termination. + 2013-08-16 Florian Weimer [BZ #14699] diff --git a/elf/setup-vdso.h b/elf/setup-vdso.h index a98dfeca33c..056d885bd66 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");