This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libelf: gelf_getphdr should check phdr index is valid.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 15 Jan 2015 14:05:46 +0100
- Subject: Re: [PATCH] libelf: gelf_getphdr should check phdr index is valid.
On Wed, 2014-12-31 at 01:03 +0100, Mark Wielaard wrote:
> elf_getphdrnum does checks the phdrnum makes sense. But gelf_getphdr
> checked the given index against the "raw" e_phnum or internal
> __elf_getphdrnum_rdlock result without checking. Extract the checking
> code into a new internal __elf_getphdrnum_chk_rdlock function and
> use that.
I pushed this to master.