Hi,
Git commit 757849cd introduced a memory stomp in get_buffer() in
output.c. If need is is equal to fmtbuf.size then:
fmtbuf.buffer[need] = '\0';
.. writes '\0' to a byte 1 beyond the size of the allocated buffer.
Please find attached a patch which fixes this.
Best regards,
Ray Donnelly.
That example method is a device to perform this .FEATURES test
without inserting it into an existing Makefile.
The syntax errors I was seeing were occurring when attempting to insert this
test
into an existing Makefile, full of Targets and command sequences.
If this feature is used it would be