* elf/setup-vdso.h (setup_vdso): Fix missing string termination.
This commit is contained in:
parent
1326ba1af2
commit
f315524e03
@ -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-20 Siddhesh Poyarekar <siddhesh@redhat.com>
|
||||
|
||||
* string/strcoll_l.c (coll_seq): New structure.
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user