aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2019-07-13 20:44:38 +0100
committerNick Alcock <nick.alcock@oracle.com>2019-10-03 17:04:55 +0100
commit3dde2c915e2c68fdda36febac618595561ed87f8 (patch)
tree7e723c7186e6400ad0a9160fca13276857d48758 /libctf/ChangeLog
parentlibctf: write CTF files to memory, and CTF archives to fds (diff)
downloadbinutils-gdb-3dde2c915e2c68fdda36febac618595561ed87f8.tar.gz
binutils-gdb-3dde2c915e2c68fdda36febac618595561ed87f8.tar.bz2
binutils-gdb-3dde2c915e2c68fdda36febac618595561ed87f8.zip
libctf: fix double-free on ctf_compress_write error path
We were freeing the compressed data buffer twice if compression failed. v4: Fix commit message. v5: fix tabdamage. libctf/ * ctf-create.c (ctf_compress_write): Fix double-free.
Diffstat (limited to 'libctf/ChangeLog')
-rw-r--r--libctf/ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index 04939431173..9e72d84ddc6 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,5 +1,9 @@
2019-07-13 Nick Alcock <nick.alcock@oracle.com>
+ * ctf-create.c (ctf_compress_write): Fix double-free.
+
+2019-07-13 Nick Alcock <nick.alcock@oracle.com>
+
* ctf-archive.c (ctf_arc_write): Split off, and reimplement in terms
of...
(ctf_arc_write_fd): ... this new function.