[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, master, updated. gawk-4.1.0-3867-g49125fb
From: |
Andrew J. Schorr |
Subject: |
[SCM] gawk branch, master, updated. gawk-4.1.0-3867-g49125fb |
Date: |
Tue, 14 Jan 2020 09:27:19 -0500 (EST) |
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 49125fbf794508efdb71a4f6f18a4bc324bd76ab (commit)
from a2a6e548bc3afcbf4c7401ebdfa8213dbe4e8dea (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=49125fbf794508efdb71a4f6f18a4bc324bd76ab
commit 49125fbf794508efdb71a4f6f18a4bc324bd76ab
Author: Andrew J. Schorr <address@hidden>
Date: Tue Jan 14 09:26:31 2020 -0500
Fix cint off-by-one array bounds overflow check for NHAT set in the
environment.
diff --git a/ChangeLog b/ChangeLog
index 0c2d928..55988b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2020-01-14 Andrew J. Schorr <address@hidden>
+
+ * cint_array.c (cint_array_init): Fix off-by-one error in array
+ bounds overflow check for an NHAT value set in the environment.
+ Thanks to Michael Builov <address@hidden> for the report.
+
2020-01-08 Arnold D. Robbins <address@hidden>
Fix a number of subtle memory leaks. Thanks to the
diff --git a/cint_array.c b/cint_array.c
index 417f27d..d7171ac 100644
--- a/cint_array.c
+++ b/cint_array.c
@@ -175,7 +175,7 @@ cint_array_init(NODE *symbol ATTRIBUTE_UNUSED, NODE *subs
ATTRIBUTE_UNUSED)
if ((newval = getenv_long("NHAT")) > 1 && newval < INT32_BIT)
NHAT = newval;
/* don't allow overflow off the end of the table */
- if (NHAT >= nelems)
+ if (NHAT > nelems - 2)
NHAT = nelems - 2;
THRESHOLD = power_two_table[NHAT + 1];
} else
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
cint_array.c | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] gawk branch, master, updated. gawk-4.1.0-3867-g49125fb,
Andrew J. Schorr <=