This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] elfcmp: Add some NULL and zero checks.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 15 Jan 2015 14:18:36 +0100
- Subject: Re: [PATCH] elfcmp: Add some NULL and zero checks.
On Sun, 2015-01-04 at 00:37 +0100, Mark Wielaard wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=1170810#c17
>
> Reported-by: Alexander Cherepanov <cherepan@mccme.ru>
> Signed-off-by: Mark Wielaard <mjw@redhat.com>
>
> + * elfcmp (main): Check section name is not NULL. Check sh_entsize
> + is not zero for symbol tables. Check phdrs are not NULL.
> + (search_for_copy_reloc): Check sh_entsize is not zero.
I pushed this to master.