[MSan] Add empty default blacklist for MSan

llvm-svn: 182382
This commit is contained in:
Alexey Samsonov 2013-05-21 13:55:56 +00:00
parent e838135b6c
commit b99085b0b8
5 changed files with 15 additions and 2 deletions

View File

@ -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*

View File

@ -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()

View File

@ -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
)

View File

@ -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

View File

@ -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