gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5485-g9d1253eb


From: Arnold Robbins
Subject: [SCM] gawk branch, gawk-5.3-stable, updated. gawk-4.1.0-5485-g9d1253eb
Date: Fri, 21 Jun 2024 03:45:12 -0400 (EDT)

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, gawk-5.3-stable has been updated
       via  9d1253ebc82f49e373555175a5c51c24875659f2 (commit)
      from  27b48b4866bafa8337daa8b00fae3b41061c02cd (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=9d1253ebc82f49e373555175a5c51c24875659f2

commit 9d1253ebc82f49e373555175a5c51c24875659f2
Author: Arnold D. Robbins <arnold@skeeve.com>
Date:   Fri Jun 21 10:44:52 2024 +0300

    Fix a bug in io.c:csvscan.

diff --git a/ChangeLog b/ChangeLog
index dc327090..b165890f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-21         Arnold D. Robbins     <arnold@skeeve.com>
+
+       * io.c (csvscan): Add a missing buffer overrun check. Restores
+       `AwKBUFSIZE=42 make check' to passing. :-)
+
 2024-06-16         Arnold D. Robbins     <arnold@skeeve.com>
 
        * interpret.h (r_interpret): Op_push: When converting a
diff --git a/io.c b/io.c
index 20bafde4..bb24dca7 100644
--- a/io.c
+++ b/io.c
@@ -3854,7 +3854,7 @@ csvscan(IOBUF *iop, struct recmatch *recm, SCANSTATE 
*state)
 
        /* look for a newline outside quotes */
        do {
-               while (*bp != rs) { 
+               while (*bp != rs && bp < iop->dataend) { 
                        if (*bp == '\"')
                                in_quote = ! in_quote;
                        bp++;

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

Summary of changes:
 ChangeLog | 5 +++++
 io.c      | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
gawk



reply via email to

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