gawk-diffs
[Top][All Lists]
Advanced

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

[SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4331-gc6eab64


From: Andrew J. Schorr
Subject: [SCM] gawk branch, gawk-5.1-stable, updated. gawk-4.1.0-4331-gc6eab64
Date: Wed, 20 Oct 2021 09:10:24 -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.1-stable has been updated
       via  c6eab64cf55d91886c18c9fbb5ff564290759ed2 (commit)
      from  51181b9f13fe0b26135a448e2a5f3d4e4d82e151 (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=c6eab64cf55d91886c18c9fbb5ff564290759ed2

commit c6eab64cf55d91886c18c9fbb5ff564290759ed2
Author: Andrew J. Schorr <aschorr@telemetry-investments.com>
Date:   Wed Oct 20 09:09:19 2021 -0400

    Fix SEGV in error message when FNR hasn't been set yet.

diff --git a/ChangeLog b/ChangeLog
index 74c4e89..9592f48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2021-10-20         Andrew J. Schorr      <aschorr@telemetry-investments.com>
+
+       * msg.c (err): Need to check that FNR_node->var_value is non-NULL
+       before testing with is_mpg_number.
+
 2021-10-18         Arnold D. Robbins     <arnold@skeeve.com>
 
        Factor duplicated code out into a separate function.
diff --git a/msg.c b/msg.c
index 0dc3f71..2ec3dfa 100644
--- a/msg.c
+++ b/msg.c
@@ -78,7 +78,7 @@ err(bool isfatal, const char *s, const char *emsg, va_list 
argp)
        }
 
 #ifdef HAVE_MPFR
-       if (FNR_node && is_mpg_number(FNR_node->var_value)) {
+       if (FNR_node && FNR_node->var_value && 
is_mpg_number(FNR_node->var_value)) {
                NODE *val;
                val = mpg_update_var(FNR_node);
                assert((val->flags & MPZN) != 0);

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

Summary of changes:
 ChangeLog | 5 +++++
 msg.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]