mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
hurd hurdstartup: Initialize remaining fields of hurd_startup_data
In case we don't have a bootstrap port or __exec_startup_get_info failed, we should avoid leaking uninitialized fields of data.
This commit is contained in:
parent
6514b2d595
commit
f77bd0ee9a
@ -145,6 +145,11 @@ _hurd_startup (void **argptr, void (*main) (intptr_t *data))
|
||||
data.portarraysize = 0;
|
||||
data.intarray = NULL;
|
||||
data.intarraysize = 0;
|
||||
data.stack_base = 0;
|
||||
data.stack_size = 0;
|
||||
data.phdr = 0;
|
||||
data.phdrsz = 0;
|
||||
data.user_entry = 0;
|
||||
}
|
||||
else if ((void *) &envp[envc + 1] == argv[0])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user