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

Mark Wielaard mark@klomp.org
Mon Mar 23 11:36:10 GMT 2020


Hi Omar,

On Mon, 2020-03-23 at 01:55 -0700, Omar Sandoval wrote:
> > That is a really nice testcase. If we tweak it a little (so all
> > segments have the same load address) then it compresses to just 188
> > bytes with bzip2. Would you mind, and give your signed-off-by, for
> > adding the attached to the testsuite? It fails before, and passes
> > after
> > your fix.
> 
> Sure thing, feel free to add
> 
> Signed-off-by: Omar Sandoval <osandov@fb.com>

Done and pushed your original fix, plus this testcase.

Thanks,

Mark


More information about the Elfutils-devel mailing list