[PATCH] libdwelf: New function dwelf_elf_begin.

Mark Wielaard mark@klomp.org
Sun Nov 4 16:37:00 GMT 2018


On Mon, 2018-10-22 at 01:47 +0200, Mark Wielaard wrote:
> It currently wraps __libdw_open_file which makes error handling
> slight tricky and needs duplicating the file handle.

Which introduced some confusion that could cause the file descriptor to
leak. The attached updated patch adds a variant to the
__libdw_open_file function that doesn't try to play tricks with the
given file descriptor which is easier to wrap for dwelf_elf_begin.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libdwelf-New-function-dwelf_elf_begin.patch
Type: text/x-patch
Size: 14831 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/elfutils-devel/attachments/20181104/3a152bd9/attachment.bin>


More information about the Elfutils-devel mailing list