public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Samuel Thibault <sthibaul@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] hurd hurdstartup: Initialize remaining fields of hurd_startup_data Date: Mon, 2 Jan 2023 10:36:26 +0000 (GMT) [thread overview] Message-ID: <20230102103626.7D44B3858408@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f77bd0ee9a4a7ef7295f3a35a0ca67c95c4e1bd6 commit f77bd0ee9a4a7ef7295f3a35a0ca67c95c4e1bd6 Author: Samuel Thibault <samuel.thibault@ens-lyon.org> Date: Mon Jan 2 01:36:02 2023 +0100 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. Diff: --- hurd/hurdstartup.c | 5 +++++ 1 file changed, 5 insertions(+) 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]) {
reply other threads:[~2023-01-02 10:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230102103626.7D44B3858408@sourceware.org \ --to=sthibaul@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).