This is the mail archive of the
mailing list for the elfutils project.
Re: elf*_xlatetom: do not check ELF_T_NHDR has integer number of records
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 17 Jul 2012 21:22:22 +0200
- Subject: Re: elf*_xlatetom: do not check ELF_T_NHDR has integer number of records
On Tue, Jul 17, 2012 at 04:37:16PM +0200, Petr Machata wrote:
> The substance is that in elfw2(LIBELFBITS, xlatetom), we shouldn't
> require integer number of records when processing notes. Payload bytes
> follow the header immediately, it's not an array of records as is the
> case otherwise.
> The commit in question is bc0f7450. Hopefully I got the signed-off-by
> business right.
Thanks. The signed-off-by business looks right.
I added a testcase for the issue that triggers on x86.
Author: Mark Wielaard <email@example.com>
Date: Tue Jul 17 21:12:39 2012 +0200
Add ppc testcase for elf32_xlatetom.c fix.
Fails before commit bc0f74 on x86, succeeds after.
Signed-off-by: Mark Wielaard <firstname.lastname@example.org>