This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libelf: Make sure shdrs are valid before storing extended phnum in newphdr.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 18 May 2015 15:51:58 +0200
- Subject: Re: [PATCH] libelf: Make sure shdrs are valid before storing extended phnum in newphdr.
On Tue, 2015-05-12 at 15:19 +0200, Mark Wielaard wrote:
> Creating phdr with more than PN_XNUM phnum requires a valid section zero
> shdr to store the extended value. Make sure the shdrs are valid. Also fix
> the error when count was too big to store by setting ELF_E_INVALID_INDEX
> before failing.
Pushed to master.