[SV 47942] Avoid random crashes in subordinate programs on MS-Windows

* w32/subproc/sub_proc.c (process_begin): Zero out startInfo
before using it.  Fixes crashes in Intel Fortran compiler invoked
by Make.
This commit is contained in:
Eli Zaretskii 2016-05-17 18:15:26 +03:00
parent 6e640321fd
commit 4c9e10fd94

View File

@ -677,6 +677,7 @@ process_begin(
/*
* Set up inherited stdin, stdout, stderr for child
*/
memset(&startInfo, sizeof(startInfo));
GetStartupInfo(&startInfo);
startInfo.dwFlags = STARTF_USESTDHANDLES;
startInfo.lpReserved = 0;