[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: double free error in gawk
From: |
arnold |
Subject: |
Re: double free error in gawk |
Date: |
Thu, 02 Jul 2020 12:02:49 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi All.
Turns out there was indeed a bug in gawk; the double free error was
a real one.
Here's the fix. Thanks for the report.
Andy, thanks for the debugging patch.
Arnold
---------------------------------------------------
diff --git a/field.c b/field.c
index 0e84447a..4740356f 100644
--- a/field.c
+++ b/field.c
@@ -230,6 +230,7 @@ rebuild_record()
}
n->stptr = cops;
+ n->flags &= ~(MPFN|MPZN);
unref(r);
fields_arr[i] = n;
assert((n->flags & WSTRCUR) == 0);