diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2022-08-22 12:37:31 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2022-08-22 12:37:31 +0200 |
commit | e0cc4ea929e6f9fab7d393d406e8f61b8e1aa546 (patch) | |
tree | 6a05385567d188260606ef686ebc442f1183c82b /winsup/cygwin/spawn.cc | |
parent | 07ec40170a32cc614818ec8fa13cacef0a8252a0 (diff) | |
download | newlib-e0cc4ea929e6f9fab7d393d406e8f61b8e1aa546.zip newlib-e0cc4ea929e6f9fab7d393d406e8f61b8e1aa546.tar.gz newlib-e0cc4ea929e6f9fab7d393d406e8f61b8e1aa546.tar.bz2 |
Cygwin: spawn: don't overallocate SECURITY_ATTRIBUTES buffer
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 641f236..5aa52ab 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)) |