This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

commit 97212fef830f9f193d4a43ee45338622db40b19c
Author: Mark Wielaard <mjw@redhat.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 <mjw@redhat.com>

Cheers,

Mark

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]