This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU M4 source repository".
http://git.sv.gnu.org/gitweb/?p=m4.git;a=commitdiff;h=5ca3ef321b2a9328cab37481ebcbdd80c0789e15 The branch, branch-1_4 has been updated via 5ca3ef321b2a9328cab37481ebcbdd80c0789e15 (commit) from 345b7b6429d6b042b39fefd500c06e83d301d4ff (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 5ca3ef321b2a9328cab37481ebcbdd80c0789e15 Author: Eric Blake <[EMAIL PROTECTED]> Date: Wed Feb 20 17:02:06 2008 -0700 Fix out-of-bounds read for sanitized macro names, from 2008-02-06. * src/m4.c (m4_verror_at_line): Properly terminate the string. Reported by Ralf Wildenhues. Signed-off-by: Eric Blake <[EMAIL PROTECTED]> ----------------------------------------------------------------------- Summary of changes: ChangeLog | 6 ++++++ src/m4.c | 1 + 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ChangeLog b/ChangeLog index 62b78a9..0f4e496 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-02-21 Eric Blake <[EMAIL PROTECTED]> + + Fix out-of-bounds read for sanitized macro names, from 2008-02-06. + * src/m4.c (m4_verror_at_line): Properly terminate the string. + Reported by Ralf Wildenhues. + 2008-02-19 Eric Blake <[EMAIL PROTECTED]> Clean up foreach example. diff --git a/src/m4.c b/src/m4.c index a6bc92a..af4991f 100644 --- a/src/m4.c +++ b/src/m4.c @@ -113,6 +113,7 @@ m4_verror_at_line (bool warn, int status, int errnum, const char *file, *p++ = *macro++; } while (*macro); + *p = '\0'; } /* Prepend warning and the macro name, as needed. But if that fails for non-memory reasons (unlikely), then still use the original hooks/post-receive -- GNU M4 source repository
