This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Bug libelf/21318] New: misaligned access error for Elf32_Shdr
- From: "ago at gentoo dot org" <sourceware-bugzilla at sourceware dot org>
- To: elfutils-devel at sourceware dot org
- Date: Mon, 27 Mar 2017 12:23:18 +0000
- Subject: [Bug libelf/21318] New: misaligned access error for Elf32_Shdr
- Auto-submitted: auto-generated
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.