[PATCH] D64559: [Sanitizers] Fix SanitizerCommon-Unit :: ./Sanitizer-*-Test/MemoryMappingLayout.DumpListOfModules on Solaris
Rainer Orth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 12 01:28:16 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL365879: [Sanitizers] Fix SanitizerCommon-Unit :: ./Sanitizer-*-Test/MemoryMappingLayout. (authored by ro, committed by ).
Herald added a subscriber: delcypher.
Changed prior to commit:
https://reviews.llvm.org/D64559?vs=209180&id=209421#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64559/new/
https://reviews.llvm.org/D64559
Files:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_solaris.cc
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_solaris.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_solaris.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_procmaps_solaris.cc
@@ -50,9 +50,11 @@
segment->protection |= kProtectionExecute;
if (segment->filename != NULL && segment->filename_size > 0) {
- internal_snprintf(segment->filename,
- Min(segment->filename_size, (uptr)PATH_MAX), "%s",
+ char proc_path[PATH_MAX + 1];
+
+ internal_snprintf(proc_path, sizeof(proc_path), "/proc/self/path/%s",
xmapentry->pr_mapname);
+ internal_readlink(proc_path, segment->filename, segment->filename_size);
}
data_.current += sizeof(prxmap_t);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64559.209421.patch
Type: text/x-patch
Size: 823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190712/b9054d2f/attachment.bin>
More information about the llvm-commits
mailing list