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.

Attachment: 0001-output.c-Fix-memory-stomp-when-need-fmtbuf.size.patch
Description: Binary data

_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to