https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=e0cc4ea929e6f9fab7d393d406e8f61b8e1aa546
commit e0cc4ea929e6f9fab7d393d406e8f61b8e1aa546 Author: Corinna Vinschen <[email protected]> Date: Mon Aug 22 12:37:31 2022 +0200 Cygwin: spawn: don't overallocate SECURITY_ATTRIBUTES buffer Signed-off-by: Corinna Vinschen <[email protected]> Diff: --- winsup/cygwin/spawn.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 641f23642..5aa52ab1e 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -619,7 +619,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv, SetHandleInformation (my_wr_proc_pipe, HANDLE_FLAG_INHERIT, 0); parent_winpid = GetCurrentProcessId (); - PSECURITY_ATTRIBUTES sa = (PSECURITY_ATTRIBUTES) tp.w_get (); + PSECURITY_ATTRIBUTES sa = (PSECURITY_ATTRIBUTES) alloca (1024); if (!sec_user_nih (sa, cygheap->user.sid (), well_known_authenticated_users_sid, PROCESS_QUERY_LIMITED_INFORMATION))
