From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============7683522518668126044==" MIME-Version: 1.0 From: Mark Wielaard To: elfutils-devel@lists.fedorahosted.org Subject: Re: [PATCH] libelf: gelf_getphdr should check phdr index is valid. Date: Thu, 15 Jan 2015 14:05:46 +0100 Message-ID: <1421327146.26117.17.camel@bordewijk.wildebeest.org> In-Reply-To: 1419984203-11034-1-git-send-email-mjw@redhat.com --===============7683522518668126044== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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. --===============7683522518668126044==--