> To: [EMAIL PROTECTED], [EMAIL PROTECTED]
> From: psmith
> Subject: Changed information for PR make/1860

Synopsis: In an obscure case make writes random memory to STDOUT

State-Changed-From-To: open-closed
State-Changed-By: psmith
State-Changed-When: Wed Aug 16 17:57:31 EDT 2000
State-Changed-Why:
The fix suggested in the bug report doesn't fix all aspects
of the problem; it only fixes the situation where the sub-
shell doesn't print anything to stdout before exiting with
error 127.  If you use this makefile:

  DEBUG := $(shell echo there; exit 127)
  all: ; echo hi

It will still potentially print random memory.

The patch below fixes all aspects of the problem, and will
be included in the next release of GNU make.

--- function.c  2000/06/20 05:48:40     1.60
+++ function.c  2000/08/16 21:57:02
@@ -1481,6 +1481,7 @@
          /* This most likely means that the execvp failed,
             so we should just write out the error message
             that came in over the pipe from the child.  */
+          buffer[i] = '\0';
          fputs (buffer, stderr);
          fflush (stderr);
        }



-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Reply via email to