mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
rtld: copy terminating null in tunables_strdup (bug 28256)
Avoid triggering a false positive from valgrind by copying the terminating null in tunables_strdup. At this point the heap is still clean, but valgrind is stricter here.
This commit is contained in:
parent
f2e33c3268
commit
a4f5a3103f
@ -56,8 +56,6 @@ tunables_strdup (const char *in)
|
||||
if (out == (void *)-1)
|
||||
_dl_fatal_printf ("sbrk() failure while processing tunables\n");
|
||||
|
||||
i--;
|
||||
|
||||
while (i-- > 0)
|
||||
out[i] = in[i];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user