diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-01-26 14:29:00 -0500 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2017-01-26 14:29:00 -0500 |
commit | baa3d88037962e5a0cd97ad048bb63f8efe2d789 (patch) | |
tree | e90617c2aea4d1d428b852aacb12f73212fa6f11 /ChangeLog | |
parent | a405df4fd26c1a1428fb3eb9d749c42295256634 (diff) | |
download | gawk-baa3d88037962e5a0cd97ad048bb63f8efe2d789.tar.gz |
Add some paranoid checks to make sure stptr was malloced before freeing it.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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. |