freebsd-nq/cddl/contrib/opensolaris
Mark Johnston 273efb05a2 Fix a double free of libelf data buffers in the USDT link code.
libdtrace needs to append to the input object files' string and symbol
tables. Currently it does so by allocating a larger buffer, copying the
existing sections into them, and swapping pointers in the libelf data
descriptors. However, it also frees those buffers when its processing is
complete, which leads to a double free since the elftoolchain libelf
owns them and also frees them in elf_end(3). Instead, free the buffers
originally allocated by libelf.

MFC after:	2 weeks
2017-02-05 02:44:08 +00:00
..
cmd Use the correct path to date(1). 2016-12-07 23:38:18 +00:00
common Recursively enumerate anonymous structs and unions in ctf_member_info(). 2016-08-30 05:50:42 +00:00
head
lib Fix a double free of libelf data buffers in the USDT link code. 2017-02-05 02:44:08 +00:00
tools/ctf Revert r253678, r253661: 2016-12-03 17:44:43 +00:00
OPENSOLARIS.LICENSE