[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] gawk branch, master, updated. gawk-4.1.0-5404-g30029046
From: |
Arnold Robbins |
Subject: |
[SCM] gawk branch, master, updated. gawk-4.1.0-5404-g30029046 |
Date: |
Mon, 23 Oct 2023 14:01:54 -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, master has been updated
via 30029046a2e096df4d9fcb7aedc01e393abce88d (commit)
from 52919b4b2a6340d7351e4c079c574a9c9692e71d (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=30029046a2e096df4d9fcb7aedc01e393abce88d
commit 30029046a2e096df4d9fcb7aedc01e393abce88d
Author: Arnold D. Robbins <arnold@skeeve.com>
Date: Mon Oct 23 21:01:34 2023 +0300
Fix a use-after-free error for gensub.
diff --git a/ChangeLog b/ChangeLog
index 39a5bfc4..e00083e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-10-23 Arnold D. Robbins <arnold@skeeve.com>
+
+ * builtin.c (do_sub): Fix a use-after-free issue reported
+ by Miguel Pineiro Jr. <mpj@pineiro.cc>.
+
2023-10-22 Arnold D. Robbins <arnold@skeeve.com>
* nonposix.h, re.c: Update coyright year.
diff --git a/builtin.c b/builtin.c
index 88663ebe..ba3459db 100644
--- a/builtin.c
+++ b/builtin.c
@@ -3330,8 +3330,9 @@ done:
return make_str_node(buf, textlen, ALREADY_MALLOCED);
} else if ((target->flags & STRING) == 0) {
/* return a copy of original string */
+ NODE *copy = make_str_node(target->stptr,
target->stlen, 0);
DEREF(target);
- return make_str_node(target->stptr, target->stlen, 0);
+ return copy;
}
/* return the original string */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
builtin.c | 3 ++-
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-5404-g30029046,
Arnold Robbins <=