This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libdwfl: Check actually used ehsize, shentsize and phentsize in relocate.c
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 11 Dec 2014 15:15:26 +0100
- Subject: Re: [PATCH] libdwfl: Check actually used ehsize, shentsize and phentsize in relocate.c
On Sun, 2014-12-07 at 23:45 +0100, Mark Wielaard wrote:
> In relocate_section we check relocation sections don't overlap any of the
> ELF headers. We should check against the actually used ehsize, shentsize
> and phentsize. Not the possibly bogus values in the file ehdr itself.
>
> 2014-12-07 Mark Wielaard <mjw@redhat.com>
>
> + * relocate.c (relocate_section): Sanity check section overlap against
> + actually used ehsize, shentsize and phentsize.
I pushed this to master now.