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: 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.

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