forked from OSchip/llvm-project
[MSan] Add empty default blacklist for MSan
llvm-svn: 182382
This commit is contained in:
parent
e838135b6c
commit
b99085b0b8
|
@ -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*
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue