https://bugs.llvm.org/show_bug.cgi?id=52371
Bug ID: 52371
Summary: Solaris/illumos MemoryMappingLayout needs to be
careful of readlink(2)
Product: compiler-rt
Version: unspecified
Hardware: PC
OS: Solaris
Status: NEW
Severity: normal
Priority: P
Component: compiler-rt
Assignee: unassignedb...@nondot.org
Reporter: richl...@richlowe.net
CC: llvm-bugs@lists.llvm.org, r...@gcc.gnu.org
Created attachment 25408
--> https://bugs.llvm.org/attachment.cgi?id=25408&action=edit
suggested fix
There's two issues here:
- readlink(2) doesn't NUL terminate, and so the mapping filename gets garbled
- readlink(2) isn't checked for failure, so anonymous mappings are
misattributed
I've attached a simple patch which seems better than what's there now
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs