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.
