[llvm-bugs] [Bug 34241] New: AARCH64 ELF binary section invalid pointer
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 18 17:42:57 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34241
Bug ID: 34241
Summary: AARCH64 ELF binary section invalid pointer
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: w.parker.thompson at gmail.com
CC: llvm-bugs at lists.llvm.org
When accessing a SectionRef::getContents() StringRef, the initial pointer is
valid, and length is correct but the memory mapped at the pointer is not large
enough for the length supplied. It's possible that the data pointer is
misaligned. When accessing memory near the end of the section pointer it will
causes a invalid access and crash.
Attached is a sample binary that causes a crash, the invalid section in the
'.bss' in this case.
In order to reproduce: llvm-objdump -disassemble-all /path/to/attachment
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170819/47ab42c2/attachment-0001.html>
More information about the llvm-bugs
mailing list