aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/cmd/dtrace
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2017-02-05 02:44:08 +0000
committerMark Johnston <markj@FreeBSD.org>2017-02-05 02:44:08 +0000
commit273efb05a21a9b60088b887440fafa062837a392 (patch)
tree66376309890dd477ada06259c1de7a04abd69095 /cddl/contrib/opensolaris/cmd/dtrace
parente801af6fba428bbac170018f9ff69e4596d06b3b (diff)
downloadsrc-273efb05a21a9b60088b887440fafa062837a392.tar.gz
src-273efb05a21a9b60088b887440fafa062837a392.zip
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
Notes
Notes: svn path=/head/; revision=313263
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace')
0 files changed, 0 insertions, 0 deletions