[Bug libelf/21316] New: multiple misaligned address errors for Elf32_Phdr

ago at gentoo dot org sourceware-bugzilla@sourceware.org
Mon Mar 27 12:12:00 GMT 2017


https://sourceware.org/bugzilla/show_bug.cgi?id=21316

            Bug ID: 21316
           Summary: multiple misaligned address errors for Elf32_Phdr
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libelf
          Assignee: unassigned at sourceware dot org
          Reporter: ago at gentoo dot org
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Created attachment 9948
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9948&action=edit
errors

On elfutils-0.168:

# eu-elflint -d $FILE
libelf/gelf_getphdr.c:100:7: runtime error: member access within misaligned
address 0x7f03180e3001 for type 'struct Elf32_Phdr', which requires 4 byte
alignment


Compiled with: gcc-6.3.0
Visible with: -fsanitize=undefined

Reproducer:
https://github.com/asarubbo/poc/blob/master/00238-elfutils-misalignedaddress2

Errors attached.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list