summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2017-01-26 14:29:00 -0500
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2017-01-26 14:29:00 -0500
commitbaa3d88037962e5a0cd97ad048bb63f8efe2d789 (patch)
treee90617c2aea4d1d428b852aacb12f73212fa6f11 /ChangeLog
parenta405df4fd26c1a1428fb3eb9d749c42295256634 (diff)
downloadgawk-baa3d88037962e5a0cd97ad048bb63f8efe2d789.tar.gz
Add some paranoid checks to make sure stptr was malloced before freeing it.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 62b956a9..12f0e5ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2017-01-26 Andrew J. Schorr <aschorr@telemetry-investments.com>
+ * node.c (r_format_val): Before we free s->stptr, make sure that it
+ was malloced.
+ (wstr2str): Add comment explaining why it's safe to free n->stptr
+ without doing any checks.
+ * mpfr.c (mpg_format_val): Ditto. And no need to reset the STRCUR flag
+ that we just checked.
+
+2017-01-26 Andrew J. Schorr <aschorr@telemetry-investments.com>
+
* awk.h (enum block_id): Remove BLOCK_INVALID, since it serves no
useful purpose and seems to slow things down a bit.
* node.c (nextfree): Remove first invalid entry.