Cygwin: spawn: don't overallocate SECURITY_ATTRIBUTES buffer

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-08-22 12:37:31 +02:00
parent 07ec40170a
commit e0cc4ea929
1 changed files with 1 additions and 1 deletions

View File

@ -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); SetHandleInformation (my_wr_proc_pipe, HANDLE_FLAG_INHERIT, 0);
parent_winpid = GetCurrentProcessId (); 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 (), if (!sec_user_nih (sa, cygheap->user.sid (),
well_known_authenticated_users_sid, well_known_authenticated_users_sid,
PROCESS_QUERY_LIMITED_INFORMATION)) PROCESS_QUERY_LIMITED_INFORMATION))