]> git.ipfire.org Git - thirdparty/make.git/commitdiff
[SV 47942] Avoid random crashes in subordinate programs on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Tue, 17 May 2016 15:15:26 +0000 (18:15 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 17 May 2016 15:15:26 +0000 (18:15 +0300)
* w32/subproc/sub_proc.c (process_begin): Zero out startInfo
before using it.  Fixes crashes in Intel Fortran compiler invoked
by Make.

w32/subproc/sub_proc.c

index 2442411a1eb0feccb9e645c76ff6f7cd706d2668..564ff1aebbadb2c641e813d0790154b9570d336e 100644 (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;