public inbox for elfutils@sourceware.org
 help / color / mirror / Atom feed
* [Bug libelf/21318] New: misaligned access error for Elf32_Shdr
@ 2017-03-27 12:23 ago at gentoo dot org
  2017-05-30  7:59 ` [Bug libelf/21318] " mark at klomp dot org
  0 siblings, 1 reply; 2+ messages in thread
From: ago at gentoo dot org @ 2017-03-27 12:23 UTC (permalink / raw)
  To: elfutils-devel

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

            Bug ID: 21318
           Summary: misaligned access error for Elf32_Shdr
           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: ---

On elfutils-0.168:

# eu-elflint -d $FILE
/tmp/portage/dev-libs/elfutils-0.168/work/elfutils-0.168/libelf/elf_begin.c:157:21:
runtime error: member access within misaligned address 0x7fd67b52c0ff for type
'struct Elf32_Shdr', which requires 4 byte alignment
0x7fd67b52c0ff: note: pointer points here
 1e 60 00 00 00  00 00 10 1e 60 00 00 00  00 00 a8 02 00 00 00 00  00 00 e8 02
00 00 00 00  00 00 00
             ^ 


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

Reproducer:
https://github.com/asarubbo/poc/blob/master/00240-elfutils-misalignedaddress4

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug libelf/21318] misaligned access error for Elf32_Shdr
  2017-03-27 12:23 [Bug libelf/21318] New: misaligned access error for Elf32_Shdr ago at gentoo dot org
@ 2017-05-30  7:59 ` mark at klomp dot org
  0 siblings, 0 replies; 2+ messages in thread
From: mark at klomp dot org @ 2017-05-30  7:59 UTC (permalink / raw)
  To: elfutils-devel

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

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |mark at klomp dot org
         Resolution|---                         |OBSOLETE

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
See bug #21315. Closing for now.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-24 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27 12:23 [Bug libelf/21318] New: misaligned access error for Elf32_Shdr ago at gentoo dot org
2017-05-30  7:59 ` [Bug libelf/21318] " mark at klomp dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).