mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 23:19:00 +00:00
Er, forgot to clear tls space to zero for Variant II.
This commit is contained in:
parent
c0d2338cdd
commit
c771787169
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157199
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user