From f315524e034cfc644157cb4af5ecc99f645dd067 Mon Sep 17 00:00:00 2001 From: Andreas Arnez Date: Tue, 20 Aug 2013 14:03:04 +0200 Subject: * elf/setup-vdso.h (setup_vdso): Fix missing string termination. --- elf/setup-vdso.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf') diff --git a/elf/setup-vdso.h b/elf/setup-vdso.h index a98dfec..056d885 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"); -- cgit v1.1