[PATCH] D78532: Add missing call to `__sanitizer::InitializePlatformEarly()` in UBSan's standalone init.
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 20 19:00:24 PDT 2020
delcypher created this revision.
delcypher added reviewers: vitalybuka, vsk, kubamracek, yln, samsonov.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.
While working on rdar://problem/62083617 I noticed this call was
missing.
This is a no-op for all platforms except Darwin. For Darwin this
means the `use_xnu_fast_mmap` flag is initialized as it was intended
when using UBSan in standalone mode.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78532
Files:
compiler-rt/lib/ubsan/ubsan_init.cpp
Index: compiler-rt/lib/ubsan/ubsan_init.cpp
===================================================================
--- compiler-rt/lib/ubsan/ubsan_init.cpp
+++ compiler-rt/lib/ubsan/ubsan_init.cpp
@@ -37,6 +37,7 @@
SanitizerToolName = GetSanititizerToolName();
CacheBinaryName();
InitializeFlags();
+ __sanitizer::InitializePlatformEarly();
__sanitizer_set_report_path(common_flags()->log_path);
AndroidLogInit();
InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78532.258886.patch
Type: text/x-patch
Size: 506 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200421/39c5fc4b/attachment.bin>
More information about the llvm-commits
mailing list