mirror of
https://github.com/mirror/make.git
synced 2025-03-28 21:11:03 +08:00
[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:
parent
6e640321fd
commit
4c9e10fd94
@ -677,6 +677,7 @@ process_begin(
|
|||||||
/*
|
/*
|
||||||
* Set up inherited stdin, stdout, stderr for child
|
* Set up inherited stdin, stdout, stderr for child
|
||||||
*/
|
*/
|
||||||
|
memset(&startInfo, sizeof(startInfo));
|
||||||
GetStartupInfo(&startInfo);
|
GetStartupInfo(&startInfo);
|
||||||
startInfo.dwFlags = STARTF_USESTDHANDLES;
|
startInfo.dwFlags = STARTF_USESTDHANDLES;
|
||||||
startInfo.lpReserved = 0;
|
startInfo.lpReserved = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user