[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-989
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-989-ge886bf3 |
Date: |
Mon, 7 Nov 2016 18:55:17 +0000 (UTC) |
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-4.1-stable has been updated
via e886bf34a4e42095824a2b14c40cb19efa80390f (commit)
from 3fa6f02daabc1bf2cc21f7854c4af990627a8863 (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=e886bf34a4e42095824a2b14c40cb19efa80390f
commit e886bf34a4e42095824a2b14c40cb19efa80390f
Author: Arnold D. Robbins <address@hidden>
Date: Mon Oct 31 21:52:43 2016 +0200
Fix some valgrind errors.
diff --git a/ChangeLog b/ChangeLog
index ecd371b..7d3b0f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,12 @@
* nonposix.h (w32_maybe_set_errno) [__MINGW32__]: Add prototype.
+2016-10-31 Arnold D. Robbins <address@hidden>
+
+ Fix valgrind issues.
+
+ * io.c (init_awkpath): Need to allocate max_path+3 pointers.
+
2016-10-26 Arnold D. Robbins <address@hidden>
* io.c (init_awkpath): Set max path len for leading separator.
diff --git a/io.c b/io.c
index ab4029e..2dbc07a 100644
--- a/io.c
+++ b/io.c
@@ -2607,8 +2607,9 @@ init_awkpath(path_info *pi)
if (*p == envsep)
max_path++;
- emalloc(pi->awkpath, char **, (max_path + 1) * sizeof(char *),
"init_awkpath");
- memset(pi->awkpath, 0, (max_path + 1) * sizeof(char *));
+ // +3 --> 2 for null entries at front and end of path, 1 for NULL end
of list
+ emalloc(pi->awkpath, char **, (max_path + 3) * sizeof(char *),
"init_awkpath");
+ memset(pi->awkpath, 0, (max_path + 3) * sizeof(char *));
start = path;
i = 0;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
io.c | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-989-ge886bf3,
Arnold Robbins <=