summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-03-28 06:14:22 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-03-28 06:14:22 +0000
commit88e93ccaa91fd55ac8bd9147c619d61ad8bca323 (patch)
tree2dc1d01603bcb398e2bb264a0ceed5e7eae38152 /libexec
parentf8168da7cf95cc9e1082de2f92593fa9e40bbde5 (diff)
downloadFreeBSD-src-88e93ccaa91fd55ac8bd9147c619d61ad8bca323.zip
FreeBSD-src-88e93ccaa91fd55ac8bd9147c619d61ad8bca323.tar.gz
Er, forgot to clear tls space to zero for Variant II.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/rtld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c
index 9824c3e..670c325 100644
--- a/libexec/rtld-elf/rtld.c
+++ b/libexec/rtld-elf/rtld.c
@@ -2804,7 +2804,7 @@ allocate_tls(Obj_Entry *objs, void *oldtls, size_t tcbsize, size_t tcbalign)
size = round(tls_static_space, tcbalign);
assert(tcbsize >= 2*sizeof(Elf_Addr));
- tls = malloc(size + tcbsize);
+ tls = calloc(1, size + tcbsize);
dtv = calloc(1, (tls_max_index + 2) * sizeof(Elf_Addr));
segbase = (Elf_Addr)(tls + size);
OpenPOWER on IntegriCloud