fix: malloc initialized before tls
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
Vendored
+2
-2
@@ -36,11 +36,11 @@ void __init_libc(char **envp, char *pn)
|
||||
__progname = __progname_full = pn;
|
||||
for (i=0; pn[i]; i++) if (pn[i]=='/') __progname = pn+i+1;
|
||||
|
||||
__malloc_process_init();
|
||||
|
||||
__init_tls(aux);
|
||||
__init_ssp((void *)aux[AT_RANDOM]);
|
||||
|
||||
__malloc_process_init();
|
||||
|
||||
if (aux[AT_UID]==aux[AT_EUID] && aux[AT_GID]==aux[AT_EGID]
|
||||
&& !aux[AT_SECURE]) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user