[llvm-bugs] [Bug 34241] New: AARCH64 ELF binary section invalid pointer
llvm-bugs at lists.llvm.org
Fri Aug 18 17:42:57 PDT 2017
Bug ID: 34241
Summary: AARCH64 ELF binary section invalid pointer
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...
More information about the llvm-bugs