This is the mail archive of the
mailing list for the elfutils project.
Re: [PATCH] libelf: elf_strptr should fetch the shdr for the section if not yet known.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Fri, 06 Feb 2015 22:21:46 +0100
- Subject: Re: [PATCH] libelf: elf_strptr should fetch the shdr for the section if not yet known.
On Tue, Jan 20, 2015 at 03:09:14PM +0100, Mark Wielaard wrote:
> elf_strptr might be called before the shdrs are read in. In that case it
> needs to explicitly call __elf[32|64]_getshdr_rdlock to check the section
> type and size. The new strptr testcase triggers this corner case and crashes
> before the fix.
I pushed this to master.