gawk-diffs
[Top][All Lists]
Advanced

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

[gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1558-g1fbfd8


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, master, updated. gawk-4.1.0-1558-g1fbfd82
Date: Sun, 25 Oct 2015 19:29:25 +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 "gawk".

The branch, master has been updated
       via  1fbfd8232d56c20045e0703f9ad59f07e5965c8a (commit)
      from  903fd5257ddcf8c4b7e4eead08969f3995b40a12 (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 -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=1fbfd8232d56c20045e0703f9ad59f07e5965c8a

commit 1fbfd8232d56c20045e0703f9ad59f07e5965c8a
Author: Arnold D. Robbins <address@hidden>
Date:   Sun Oct 25 21:29:04 2015 +0200

    Fix invalid write in yylex.

diff --git a/ChangeLog b/ChangeLog
index 13468de..7017741 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-25         Arnold D. Robbins     <address@hidden>
+
+       * awkgram.y (yylex): Fix invalid write problems.
+       Reported by Hanno Boeck <address@hidden>.
+       Only appeared in master. Harumph.
+
 2015-10-16         Arnold D. Robbins     <address@hidden>
 
        * Makefile.am (SUBDIRS): Fix ordering so that
diff --git a/awkgram.c b/awkgram.c
index f8f80ad..b37ee57 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -4736,7 +4736,8 @@ yyerror(const char *m, ...)
        count = strlen(mesg) + 1;
        if (lexptr != NULL)
                count += (lexeme - thisline) + 2;
-       emalloc(buf, char *, count, "yyerror");
+       emalloc(buf, char *, count+1, "yyerror");
+       memset(buf, 0, count+1);
 
        bp = buf;
 
diff --git a/awkgram.y b/awkgram.y
index 88f5e20..7805f14 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -2316,7 +2316,8 @@ yyerror(const char *m, ...)
        count = strlen(mesg) + 1;
        if (lexptr != NULL)
                count += (lexeme - thisline) + 2;
-       emalloc(buf, char *, count, "yyerror");
+       emalloc(buf, char *, count+1, "yyerror");
+       memset(buf, 0, count+1);
 
        bp = buf;
 

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

Summary of changes:
 ChangeLog |    6 ++++++
 awkgram.c |    3 ++-
 awkgram.y |    3 ++-
 3 files changed, 10 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
gawk



reply via email to

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