On Fri, 2014-02-07 at 14:28 +0100, Mark Wielaard wrote: > Could you test against current git with the attached patch? Or could you > give me access to your crafted ELF file?
Florian sent me the ELF file off-list to check the patch resolves the issue of printing corrupted interpreter strings. It does. I am pushing this patch to master. Thanks, Mark Check phdr->p_filesz and make sure interpreter string is zero terminated before calling printf. Reported-by: Florian Weimer <[email protected]> Signed-off-by: Mark Wielaard <[email protected]> +2014-02-07 Mark Wielaard <[email protected]> + + * readelf.c (print_phdr): Check phdr->p_filesz and make sure + interpreter string is zero terminated before calling printf.
