[compiler-rt] r182382 - [MSan] Add empty default blacklist for MSan
Alexey Samsonov
samsonov at google.com
Tue May 21 06:55:56 PDT 2013
Author: samsonov
Date: Tue May 21 08:55:56 2013
New Revision: 182382
URL: http://llvm.org/viewvc/llvm-project?rev=182382&view=rev
Log:
[MSan] Add empty default blacklist for MSan
Added:
compiler-rt/trunk/lib/msan/lit_tests/default_blacklist.cc
compiler-rt/trunk/lib/msan/msan_blacklist.txt
Modified:
compiler-rt/trunk/lib/asan/asan_blacklist.txt
compiler-rt/trunk/lib/msan/CMakeLists.txt
compiler-rt/trunk/lib/msan/lit_tests/CMakeLists.txt
Modified: compiler-rt/trunk/lib/asan/asan_blacklist.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_blacklist.txt?rev=182382&r1=182381&r2=182382&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_blacklist.txt (original)
+++ compiler-rt/trunk/lib/asan/asan_blacklist.txt Tue May 21 08:55:56 2013
@@ -3,7 +3,7 @@
# at compile-time using -fsanitize-blacklist=<path> flag.
# Example usage:
-# fun:*_ZN4base6subtle*
+# fun:*bad_function_name*
# src:file_with_tricky_code.cc
# global:*global_with_bad_access_or_initialization*
# global-init:*global_with_initialization_issues*
Modified: compiler-rt/trunk/lib/msan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/CMakeLists.txt?rev=182382&r1=182381&r2=182382&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/msan/CMakeLists.txt Tue May 21 08:55:56 2013
@@ -30,6 +30,8 @@ if(CAN_TARGET_${arch})
list(APPEND MSAN_RUNTIME_LIBRARIES clang_rt.msan-${arch})
endif()
+add_compiler_rt_resource_file(msan_blacklist msan_blacklist.txt)
+
if(LLVM_INCLUDE_TESTS)
add_subdirectory(tests)
endif()
Modified: compiler-rt/trunk/lib/msan/lit_tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/lit_tests/CMakeLists.txt?rev=182382&r1=182381&r2=182382&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/lit_tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/msan/lit_tests/CMakeLists.txt Tue May 21 08:55:56 2013
@@ -15,7 +15,8 @@ if(COMPILER_RT_CAN_EXECUTE_TESTS)
# Run MSan tests only if we're sure we may produce working binaries.
set(MSAN_TEST_DEPS
${SANITIZER_COMMON_LIT_TEST_DEPS}
- ${MSAN_RUNTIME_LIBRARIES})
+ ${MSAN_RUNTIME_LIBRARIES}
+ msan_blacklist)
set(MSAN_TEST_PARAMS
msan_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
)
Added: compiler-rt/trunk/lib/msan/lit_tests/default_blacklist.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/lit_tests/default_blacklist.cc?rev=182382&view=auto
==============================================================================
--- compiler-rt/trunk/lib/msan/lit_tests/default_blacklist.cc (added)
+++ compiler-rt/trunk/lib/msan/lit_tests/default_blacklist.cc Tue May 21 08:55:56 2013
@@ -0,0 +1,3 @@
+// Test that MSan uses the default blacklist from resource directory.
+// RUN: %clangxx_msan -### %s 2>&1 | FileCheck %s
+// CHECK: fsanitize-blacklist={{.*}}msan_blacklist.txt
Added: compiler-rt/trunk/lib/msan/msan_blacklist.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/msan_blacklist.txt?rev=182382&view=auto
==============================================================================
--- compiler-rt/trunk/lib/msan/msan_blacklist.txt (added)
+++ compiler-rt/trunk/lib/msan/msan_blacklist.txt Tue May 21 08:55:56 2013
@@ -0,0 +1,7 @@
+# Blacklist for MemorySanitizer. Turns off instrumentation of particular
+# functions or sources. Use with care. You may set location of blacklist
+# at compile-time using -fsanitize-blacklist=<path> flag.
+
+# Example usage:
+# fun:*bad_function_name*
+# src:file_with_tricky_code.cc
More information about the llvm-commits
mailing list