This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]