m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU M4 source repository branch, branch-1_4, updated. branch-cvs-r


From: Eric Blake
Subject: [SCM] GNU M4 source repository branch, branch-1_4, updated. branch-cvs-readonly-57-g5ca3ef3
Date: Thu, 21 Feb 2008 00:09:15 +0000

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 <address@hidden>
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 <address@hidden>

-----------------------------------------------------------------------

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  <address@hidden>
+
+       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  <address@hidden>
 
        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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]