diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-02 01:36:02 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-02 11:36:11 +0100 |
commit | f77bd0ee9a4a7ef7295f3a35a0ca67c95c4e1bd6 (patch) | |
tree | 1ef54b9ee572d813565042117b0753f65f31776a /hurd/hurdstartup.c | |
parent | 6514b2d59545300b27785abaaacd0115ff61a18d (diff) | |
download | glibc-f77bd0ee9a4a7ef7295f3a35a0ca67c95c4e1bd6.tar.gz glibc-f77bd0ee9a4a7ef7295f3a35a0ca67c95c4e1bd6.tar.xz glibc-f77bd0ee9a4a7ef7295f3a35a0ca67c95c4e1bd6.zip |
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.
Diffstat (limited to 'hurd/hurdstartup.c')
-rw-r--r-- | hurd/hurdstartup.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hurd/hurdstartup.c b/hurd/hurdstartup.c index e9cd8a360b..d312766052 100644 --- a/hurd/hurdstartup.c +++ b/hurd/hurdstartup.c @@ -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]) { |