PR25369 rfc slice 2: debuginfod get_url

2020-03-20 Thread Frank Ch. Eigler via Elfutils-devel
Hi - Slice 2/3, the debuginfod_client get_url function. This new version works during or after the progressfn callback. Author: Frank Ch. Eigler Date: Fri Mar 20 21:33:52 2020 -0400 debuginfod client API: add get_url function This function lets a client know, during or after a p

Re: [PATCH] libelf: handle PN_XNUM in elf_getphdrnum before shdr 0 is cached

2020-03-20 Thread Mark Wielaard
Hi Omar, On Wed, Mar 18, 2020 at 01:18:51PM -0700, Omar Sandoval wrote: > __elf_getphdrnum_rdlock() handles PN_XNUM by getting sh_info from > elf->state.elf{32,64}.scns.data[0].shdr.e{32,64}. However, that is only > a cache that may or may not have been populated by elf_begin() or > elf{32,64}_get

Re: [PATCH v2] libelf: {de,}compress: ensure zlib resource cleanup

2020-03-20 Thread Mark Wielaard
Hi Matthias, On Fri, 2020-03-20 at 12:17 +0100, Matthias Maennich via Elfutils-devel wrote: > __libelf_decompress would only cleanup zlib resources via inflateEnd() > in case inflating was successful, but would leak memory if not. Fix this > by calling inflateEnd() unconditionally. > > __libelf_d

[PATCH v2] libelf: {de,}compress: ensure zlib resource cleanup

2020-03-20 Thread Matthias Maennich via Elfutils-devel
__libelf_decompress would only cleanup zlib resources via inflateEnd() in case inflating was successful, but would leak memory if not. Fix this by calling inflateEnd() unconditionally. __libelf_decompress did this all the time already, but called deflateEnd() twice. That is not a (known) issue, bu