rtld: copy terminating null in tunables_strdup (bug 28256)
commita4f5a3103fc3e7974dbe35b411cba9f670807cde
authorAndreas Schwab <schwab@linux-m68k.org>
Mon, 23 Aug 2021 08:19:52 +0000 (23 10:19 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Mon, 23 Aug 2021 13:31:09 +0000 (23 15:31 +0200)
tree5c91ec9ccc7ad7f65a507bae287336d948bbc19a
parentf2e33c3268db9adf8e57e991676ed0d5ac74e8a8
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.
elf/dl-tunables.c