aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:00:15 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:00:15 +0000
commit63714eb5809e39666dec2454c354195e76f916ba (patch)
treee3714cd783c265396c2ef3c117047e7c0ea41619
parent0646903fc1f75f6e605754621119473ee083f4a4 (diff)
downloadsrc-63714eb5809e39666dec2454c354195e76f916ba.tar.gz
src-63714eb5809e39666dec2454c354195e76f916ba.zip
Remove upstream files and directories from vendor/compiler-rt/dist that
we do not use. This saves on repository space, and reduces the number of tree conflicts when merging.
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=351268
-rw-r--r--.arcconfig4
-rw-r--r--.gitignore6
-rw-r--r--CMakeLists.txt474
-rw-r--r--CODE_OWNERS.TXT53
-rw-r--r--cmake/Modules/AddCompilerRT.cmake670
-rw-r--r--cmake/Modules/BuiltinTests.cmake98
-rw-r--r--cmake/Modules/CompilerRTCompile.cmake143
-rw-r--r--cmake/Modules/CompilerRTDarwinUtils.cmake440
-rw-r--r--cmake/Modules/CompilerRTLink.cmake16
-rw-r--r--cmake/Modules/CompilerRTUtils.cmake415
-rw-r--r--cmake/Modules/HandleCompilerRT.cmake24
-rw-r--r--cmake/Modules/SanitizerUtils.cmake108
-rw-r--r--cmake/base-config-ix.cmake226
-rw-r--r--cmake/builtin-config-ix.cmake167
-rw-r--r--cmake/caches/Apple.cmake15
-rw-r--r--cmake/config-ix.cmake665
-rw-r--r--docs/TestingGuide.rst66
-rw-r--r--include/CMakeLists.txt72
-rw-r--r--lib/CMakeLists.txt54
-rw-r--r--lib/asan/.clang-format2
-rw-r--r--lib/asan/CMakeLists.txt338
-rw-r--r--lib/asan/scripts/CMakeLists.txt4
-rwxr-xr-xlib/asan/scripts/asan_device_setup467
-rwxr-xr-xlib/asan/scripts/asan_symbolize.py523
-rw-r--r--lib/asan/tests/CMakeLists.txt309
-rw-r--r--lib/asan/tests/asan_asm_test.cc274
-rw-r--r--lib/asan/tests/asan_benchmarks_test.cc85
-rw-r--r--lib/asan/tests/asan_exceptions_test.cc27
-rw-r--r--lib/asan/tests/asan_fake_stack_test.cc152
-rw-r--r--lib/asan/tests/asan_globals_test.cc45
-rw-r--r--lib/asan/tests/asan_interface_test.cc422
-rw-r--r--lib/asan/tests/asan_internal_interface_test.cc37
-rw-r--r--lib/asan/tests/asan_mac_test.cc236
-rw-r--r--lib/asan/tests/asan_mac_test.h19
-rw-r--r--lib/asan/tests/asan_mac_test_helpers.mm241
-rw-r--r--lib/asan/tests/asan_mem_test.cc242
-rw-r--r--lib/asan/tests/asan_noinst_test.cc273
-rw-r--r--lib/asan/tests/asan_oob_test.cc128
-rw-r--r--lib/asan/tests/asan_racy_double_free_test.cc32
-rw-r--r--lib/asan/tests/asan_str_test.cc635
-rw-r--r--lib/asan/tests/asan_test.cc1363
-rw-r--r--lib/asan/tests/asan_test.ignore3
-rw-r--r--lib/asan/tests/asan_test_config.h50
-rw-r--r--lib/asan/tests/asan_test_main.cc56
-rw-r--r--lib/asan/tests/asan_test_utils.h109
-rw-r--r--lib/builtins/CMakeLists.txt615
-rw-r--r--lib/builtins/Darwin-excludes/CMakeLists.txt4
-rw-r--r--lib/builtins/Darwin-excludes/README.TXT11
-rw-r--r--lib/builtins/Darwin-excludes/ios-armv7.txt57
-rw-r--r--lib/builtins/Darwin-excludes/ios-armv7s.txt57
-rw-r--r--lib/builtins/Darwin-excludes/ios.txt1
-rw-r--r--lib/builtins/Darwin-excludes/ios6-armv7.txt120
-rw-r--r--lib/builtins/Darwin-excludes/ios6-armv7s.txt120
-rw-r--r--lib/builtins/Darwin-excludes/ios7-arm64.txt16
-rw-r--r--lib/builtins/Darwin-excludes/iossim-i386.txt82
-rw-r--r--lib/builtins/Darwin-excludes/iossim-x86_64.txt12
-rw-r--r--lib/builtins/Darwin-excludes/iossim.txt1
-rw-r--r--lib/builtins/Darwin-excludes/osx-i386.txt35
-rw-r--r--lib/builtins/Darwin-excludes/osx.txt7
-rw-r--r--lib/builtins/macho_embedded/CMakeLists.txt4
-rw-r--r--lib/builtins/macho_embedded/arm.txt16
-rw-r--r--lib/builtins/macho_embedded/common.txt92
-rw-r--r--lib/builtins/macho_embedded/i386.txt7
-rw-r--r--lib/builtins/macho_embedded/thumb2-64.txt10
-rw-r--r--lib/builtins/macho_embedded/thumb2.txt14
-rw-r--r--lib/cfi/CMakeLists.txt41
-rw-r--r--lib/dfsan/.clang-format2
-rw-r--r--lib/dfsan/CMakeLists.txt57
-rwxr-xr-xlib/dfsan/scripts/build-libc-list.py96
-rwxr-xr-xlib/dfsan/scripts/check_custom_wrappers.sh54
-rw-r--r--lib/esan/CMakeLists.txt55
-rw-r--r--lib/fuzzer/CMakeLists.txt147
-rw-r--r--lib/fuzzer/afl/afl_driver.cpp378
-rwxr-xr-xlib/fuzzer/build.sh11
-rw-r--r--lib/fuzzer/dataflow/DataFlow.cpp217
-rwxr-xr-xlib/fuzzer/scripts/collect_data_flow.py79
-rwxr-xr-xlib/fuzzer/scripts/merge_data_flow.py36
-rwxr-xr-xlib/fuzzer/scripts/unbalanced_allocs.py93
-rw-r--r--lib/fuzzer/standalone/StandaloneFuzzTargetMain.c41
-rw-r--r--lib/fuzzer/tests/CMakeLists.txt64
-rw-r--r--lib/fuzzer/tests/FuzzerUnittest.cpp964
-rw-r--r--lib/hwasan/.clang-format2
-rw-r--r--lib/hwasan/CMakeLists.txt179
-rw-r--r--lib/interception/.clang-format2
-rw-r--r--lib/interception/CMakeLists.txt29
-rw-r--r--lib/interception/tests/CMakeLists.txt113
-rw-r--r--lib/interception/tests/interception_linux_test.cc68
-rw-r--r--lib/interception/tests/interception_test_main.cc22
-rw-r--r--lib/interception/tests/interception_win_test.cc637
-rw-r--r--lib/lsan/.clang-format2
-rw-r--r--lib/lsan/CMakeLists.txt78
-rw-r--r--lib/msan/.clang-format2
-rw-r--r--lib/msan/CMakeLists.txt86
-rw-r--r--lib/msan/tests/CMakeLists.txt142
-rw-r--r--lib/msan/tests/msan_loadable.cc27
-rw-r--r--lib/msan/tests/msan_test.cc4639
-rw-r--r--lib/msan/tests/msan_test_config.h20
-rw-r--r--lib/msan/tests/msan_test_main.cc21
-rw-r--r--lib/profile/CMakeLists.txt126
-rw-r--r--lib/safestack/.clang-format2
-rw-r--r--lib/safestack/CMakeLists.txt19
-rw-r--r--lib/sanitizer_common/.clang-format2
-rw-r--r--lib/sanitizer_common/.clang-tidy16
-rw-r--r--lib/sanitizer_common/CMakeLists.txt374
-rwxr-xr-xlib/sanitizer_common/scripts/check_lint.sh142
-rwxr-xr-xlib/sanitizer_common/scripts/cpplint.py4024
-rwxr-xr-xlib/sanitizer_common/scripts/gen_dynamic_list.py135
-rwxr-xr-xlib/sanitizer_common/scripts/litlint.py72
-rwxr-xr-xlib/sanitizer_common/scripts/litlint_test.py23
-rwxr-xr-xlib/sanitizer_common/scripts/sancov.py251
-rw-r--r--lib/sanitizer_common/tests/CMakeLists.txt218
-rw-r--r--lib/sanitizer_common/tests/malloc_stress_transfer_test.cc37
-rw-r--r--lib/sanitizer_common/tests/sanitizer_allocator_test.cc1430
-rw-r--r--lib/sanitizer_common/tests/sanitizer_allocator_testlib.cc203
-rw-r--r--lib/sanitizer_common/tests/sanitizer_atomic_test.cc128
-rw-r--r--lib/sanitizer_common/tests/sanitizer_bitvector_test.cc178
-rw-r--r--lib/sanitizer_common/tests/sanitizer_bvgraph_test.cc339
-rw-r--r--lib/sanitizer_common/tests/sanitizer_common_test.cc442
-rw-r--r--lib/sanitizer_common/tests/sanitizer_deadlock_detector_test.cc496
-rw-r--r--lib/sanitizer_common/tests/sanitizer_flags_test.cc180
-rw-r--r--lib/sanitizer_common/tests/sanitizer_format_interceptor_test.cc263
-rw-r--r--lib/sanitizer_common/tests/sanitizer_ioctl_test.cc105
-rw-r--r--lib/sanitizer_common/tests/sanitizer_libc_test.cc315
-rw-r--r--lib/sanitizer_common/tests/sanitizer_linux_test.cc296
-rw-r--r--lib/sanitizer_common/tests/sanitizer_list_test.cc189
-rw-r--r--lib/sanitizer_common/tests/sanitizer_mutex_test.cc137
-rw-r--r--lib/sanitizer_common/tests/sanitizer_nolibc_test.cc31
-rw-r--r--lib/sanitizer_common/tests/sanitizer_nolibc_test_main.cc19
-rw-r--r--lib/sanitizer_common/tests/sanitizer_posix_test.cc81
-rw-r--r--lib/sanitizer_common/tests/sanitizer_printf_test.cc161
-rw-r--r--lib/sanitizer_common/tests/sanitizer_procmaps_test.cc79
-rw-r--r--lib/sanitizer_common/tests/sanitizer_pthread_wrappers.h68
-rw-r--r--lib/sanitizer_common/tests/sanitizer_quarantine_test.cc180
-rw-r--r--lib/sanitizer_common/tests/sanitizer_ring_buffer_test.cc99
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stackdepot_test.cc93
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stacktrace_printer_test.cc157
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stacktrace_test.cc167
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc204
-rw-r--r--lib/sanitizer_common/tests/sanitizer_stoptheworld_testlib.cc53
-rw-r--r--lib/sanitizer_common/tests/sanitizer_suppressions_test.cc135
-rw-r--r--lib/sanitizer_common/tests/sanitizer_symbolizer_test.cc72
-rw-r--r--lib/sanitizer_common/tests/sanitizer_test_config.h30
-rw-r--r--lib/sanitizer_common/tests/sanitizer_test_main.cc24
-rw-r--r--lib/sanitizer_common/tests/sanitizer_test_utils.h139
-rw-r--r--lib/sanitizer_common/tests/sanitizer_thread_registry_test.cc236
-rw-r--r--lib/sanitizer_common/tests/sanitizer_type_traits_test.cc28
-rw-r--r--lib/sanitizer_common/tests/sanitizer_vector_test.cc51
-rw-r--r--lib/sanitizer_common/tests/standalone_malloc_test.cc87
-rw-r--r--lib/scudo/CMakeLists.txt142
-rw-r--r--lib/stats/CMakeLists.txt45
-rw-r--r--lib/tsan/.clang-format2
-rw-r--r--lib/tsan/CMakeLists.txt258
-rwxr-xr-xlib/tsan/analyze_libtsan.sh54
-rwxr-xr-xlib/tsan/check_analyze.sh56
-rwxr-xr-xlib/tsan/check_cmake.sh18
-rw-r--r--lib/tsan/dd/CMakeLists.txt52
-rw-r--r--lib/tsan/go/build.bat4
-rwxr-xr-xlib/tsan/go/buildgo.sh173
-rw-r--r--lib/tsan/tests/CMakeLists.txt72
-rw-r--r--lib/tsan/tests/rtl/CMakeLists.txt19
-rw-r--r--lib/tsan/tests/rtl/tsan_bench.cc105
-rw-r--r--lib/tsan/tests/rtl/tsan_mop.cc233
-rw-r--r--lib/tsan/tests/rtl/tsan_mutex.cc221
-rw-r--r--lib/tsan/tests/rtl/tsan_posix.cc155
-rw-r--r--lib/tsan/tests/rtl/tsan_posix_util.h77
-rw-r--r--lib/tsan/tests/rtl/tsan_string.cc82
-rw-r--r--lib/tsan/tests/rtl/tsan_test.cc66
-rw-r--r--lib/tsan/tests/rtl/tsan_test_util.h130
-rw-r--r--lib/tsan/tests/rtl/tsan_test_util_posix.cc478
-rw-r--r--lib/tsan/tests/rtl/tsan_thread.cc59
-rw-r--r--lib/tsan/tests/unit/CMakeLists.txt12
-rw-r--r--lib/tsan/tests/unit/tsan_clock_test.cc494
-rw-r--r--lib/tsan/tests/unit/tsan_dense_alloc_test.cc55
-rw-r--r--lib/tsan/tests/unit/tsan_flags_test.cc174
-rw-r--r--lib/tsan/tests/unit/tsan_mman_test.cc197
-rw-r--r--lib/tsan/tests/unit/tsan_mutex_test.cc126
-rw-r--r--lib/tsan/tests/unit/tsan_mutexset_test.cc127
-rw-r--r--lib/tsan/tests/unit/tsan_shadow_test.cc78
-rw-r--r--lib/tsan/tests/unit/tsan_stack_test.cc95
-rw-r--r--lib/tsan/tests/unit/tsan_sync_test.cc123
-rw-r--r--lib/tsan/tests/unit/tsan_unit_test_main.cc25
-rw-r--r--lib/ubsan/CMakeLists.txt227
-rw-r--r--lib/ubsan_minimal/CMakeLists.txt53
-rw-r--r--lib/xray/CMakeLists.txt296
-rw-r--r--lib/xray/tests/CMakeLists.txt132
-rw-r--r--lib/xray/tests/unit/CMakeLists.txt16
-rw-r--r--lib/xray/tests/unit/allocator_test.cc82
-rw-r--r--lib/xray/tests/unit/buffer_queue_test.cc235
-rw-r--r--lib/xray/tests/unit/fdr_controller_test.cc424
-rw-r--r--lib/xray/tests/unit/fdr_log_writer_test.cc162
-rw-r--r--lib/xray/tests/unit/function_call_trie_test.cc344
-rw-r--r--lib/xray/tests/unit/profile_collector_test.cc236
-rw-r--r--lib/xray/tests/unit/segmented_array_test.cc349
-rw-r--r--lib/xray/tests/unit/test_helpers.cc95
-rw-r--r--lib/xray/tests/unit/test_helpers.h78
-rw-r--r--lib/xray/tests/unit/xray_unit_test_main.cc18
-rw-r--r--test/.clang-format2
-rw-r--r--test/BlocksRuntime/block-static.c25
-rw-r--r--test/BlocksRuntime/blockimport.c51
-rw-r--r--test/BlocksRuntime/byrefaccess.c34
-rw-r--r--test/BlocksRuntime/byrefcopy.c41
-rw-r--r--test/BlocksRuntime/byrefcopycopy.c46
-rw-r--r--test/BlocksRuntime/byrefcopyinner.c32
-rw-r--r--test/BlocksRuntime/byrefcopyint.c69
-rw-r--r--test/BlocksRuntime/byrefcopystack.c41
-rw-r--r--test/BlocksRuntime/byrefsanity.c73
-rw-r--r--test/BlocksRuntime/byrefstruct.c57
-rw-r--r--test/BlocksRuntime/c99.c20
-rw-r--r--test/BlocksRuntime/cast.c37
-rw-r--r--test/BlocksRuntime/constassign.c28
-rw-r--r--test/BlocksRuntime/copy-block-literal-rdar6439600.c29
-rw-r--r--test/BlocksRuntime/copyconstructor.C85
-rw-r--r--test/BlocksRuntime/copynull.c37
-rw-r--r--test/BlocksRuntime/dispatch_async.c57
-rw-r--r--test/BlocksRuntime/dispatch_call_Block_with_release.c31
-rw-r--r--test/BlocksRuntime/fail.c107
-rw-r--r--test/BlocksRuntime/flagsisa.c21
-rw-r--r--test/BlocksRuntime/globalexpression.c42
-rw-r--r--test/BlocksRuntime/goto.c34
-rw-r--r--test/BlocksRuntime/hasdescriptor.c29
-rw-r--r--test/BlocksRuntime/josh.C32
-rw-r--r--test/BlocksRuntime/k-and-r.c33
-rw-r--r--test/BlocksRuntime/large-struct.c51
-rw-r--r--test/BlocksRuntime/localisglobal.c42
-rw-r--r--test/BlocksRuntime/macro.c14
-rw-r--r--test/BlocksRuntime/makefile70
-rw-r--r--test/BlocksRuntime/modglobal.c18
-rw-r--r--test/BlocksRuntime/nestedimport.c44
-rw-r--r--test/BlocksRuntime/nullblockisa.c43
-rw-r--r--test/BlocksRuntime/objectRRGC.c77
-rw-r--r--test/BlocksRuntime/objectassign.c76
-rw-r--r--test/BlocksRuntime/orbars.c23
-rw-r--r--test/BlocksRuntime/rdar6396238.c32
-rw-r--r--test/BlocksRuntime/rdar6405500.c29
-rw-r--r--test/BlocksRuntime/rdar6414583.c31
-rw-r--r--test/BlocksRuntime/recursive-block.c55
-rw-r--r--test/BlocksRuntime/recursive-test.c74
-rw-r--r--test/BlocksRuntime/recursiveassign.c44
-rw-r--r--test/BlocksRuntime/reference.C95
-rw-r--r--test/BlocksRuntime/rettypepromotion.c36
-rw-r--r--test/BlocksRuntime/returnfunctionptr.c23
-rw-r--r--test/BlocksRuntime/shorthandexpression.c24
-rw-r--r--test/BlocksRuntime/sizeof.c26
-rw-r--r--test/BlocksRuntime/small-struct.c45
-rw-r--r--test/BlocksRuntime/structmember.c45
-rw-r--r--test/BlocksRuntime/testfilerunner.h110
-rw-r--r--test/BlocksRuntime/testfilerunner.m805
-rw-r--r--test/BlocksRuntime/varargs-bad-assign.c44
-rw-r--r--test/BlocksRuntime/varargs.c39
-rw-r--r--test/BlocksRuntime/variadic.c66
-rw-r--r--test/BlocksRuntime/voidarg.c27
-rw-r--r--test/CMakeLists.txt99
-rw-r--r--test/asan/CMakeLists.txt172
-rw-r--r--test/asan/TestCases/Android/lit.local.cfg11
-rw-r--r--test/asan/TestCases/Darwin/abort_on_error.cc19
-rw-r--r--test/asan/TestCases/Darwin/address-range-limit.mm41
-rw-r--r--test/asan/TestCases/Darwin/asan_gen_prefixes.cc16
-rw-r--r--test/asan/TestCases/Darwin/atos-symbolizer-dyld-root-path.cc30
-rw-r--r--test/asan/TestCases/Darwin/atos-symbolizer.cc27
-rw-r--r--test/asan/TestCases/Darwin/crashlog-stacktraces.c48
-rw-r--r--test/asan/TestCases/Darwin/cstring_literals_regtest.mm23
-rw-r--r--test/asan/TestCases/Darwin/cstring_section.c17
-rw-r--r--test/asan/TestCases/Darwin/dead-strip.c23
-rw-r--r--test/asan/TestCases/Darwin/dladdr-demangling.cc36
-rw-r--r--test/asan/TestCases/Darwin/dump_registers.cc26
-rw-r--r--test/asan/TestCases/Darwin/dyld_insert_libraries_reexec.cc46
-rw-r--r--test/asan/TestCases/Darwin/dyld_insert_libraries_remove.cc45
-rw-r--r--test/asan/TestCases/Darwin/empty-section.cc12
-rw-r--r--test/asan/TestCases/Darwin/fclose.c13
-rw-r--r--test/asan/TestCases/Darwin/getpwnam.c15
-rw-r--r--test/asan/TestCases/Darwin/haswell-symbolication.cc100
-rw-r--r--test/asan/TestCases/Darwin/init_for_dlopen.cc46
-rw-r--r--test/asan/TestCases/Darwin/interface_symbols_darwin.cc36
-rw-r--r--test/asan/TestCases/Darwin/linked-only.cc33
-rw-r--r--test/asan/TestCases/Darwin/lit.local.cfg9
-rw-r--r--test/asan/TestCases/Darwin/malloc_destroy_zone.cc21
-rw-r--r--test/asan/TestCases/Darwin/malloc_set_zone_name-mprotect.cc52
-rw-r--r--test/asan/TestCases/Darwin/malloc_size_crash.mm15
-rw-r--r--test/asan/TestCases/Darwin/malloc_zone-protected.cc20
-rw-r--r--test/asan/TestCases/Darwin/mixing-global-constructors.cc42
-rw-r--r--test/asan/TestCases/Darwin/nil-return-struct.mm31
-rw-r--r--test/asan/TestCases/Darwin/objc-odr.mm23
-rw-r--r--test/asan/TestCases/Darwin/odr-lto.cc39
-rw-r--r--test/asan/TestCases/Darwin/reexec-insert-libraries-env.cc27
-rw-r--r--test/asan/TestCases/Darwin/sandbox-symbolizer.cc32
-rw-r--r--test/asan/TestCases/Darwin/scribble.cc58
-rw-r--r--test/asan/TestCases/Darwin/segv_read_write.c23
-rw-r--r--test/asan/TestCases/Darwin/suppressions-darwin.cc36
-rw-r--r--test/asan/TestCases/Darwin/suppressions-function.cc28
-rw-r--r--test/asan/TestCases/Darwin/suppressions-sandbox.cc30
-rw-r--r--test/asan/TestCases/Darwin/unset-insert-libraries-on-exec.cc27
-rw-r--r--test/asan/TestCases/Darwin/uuid.cc31
-rw-r--r--test/asan/TestCases/Helpers/blacklist-extra.cc5
-rw-r--r--test/asan/TestCases/Helpers/echo-env.cc19
-rw-r--r--test/asan/TestCases/Helpers/init-order-atexit-extra.cc16
-rw-r--r--test/asan/TestCases/Helpers/initialization-blacklist-extra.cc15
-rw-r--r--test/asan/TestCases/Helpers/initialization-blacklist-extra2.cc4
-rw-r--r--test/asan/TestCases/Helpers/initialization-blacklist.txt3
-rw-r--r--test/asan/TestCases/Helpers/initialization-bug-extra.cc5
-rw-r--r--test/asan/TestCases/Helpers/initialization-bug-extra2.cc6
-rw-r--r--test/asan/TestCases/Helpers/initialization-constexpr-extra.cc3
-rw-r--r--test/asan/TestCases/Helpers/initialization-nobug-extra.cc9
-rw-r--r--test/asan/TestCases/Helpers/lit.local.cfg3
-rw-r--r--test/asan/TestCases/Helpers/underflow.cc1
-rw-r--r--test/asan/TestCases/Linux/abort_on_error.cc21
-rw-r--r--test/asan/TestCases/Linux/activation-options.cc70
-rw-r--r--test/asan/TestCases/Linux/aligned_delete_test.cc140
-rw-r--r--test/asan/TestCases/Linux/allocator_oom_test.cc88
-rw-r--r--test/asan/TestCases/Linux/asan-asm-stacktrace-test.cc33
-rw-r--r--test/asan/TestCases/Linux/asan_default_suppressions.cc7
-rw-r--r--test/asan/TestCases/Linux/asan_dlopen_test.cc17
-rw-r--r--test/asan/TestCases/Linux/asan_prelink_test.cc29
-rw-r--r--test/asan/TestCases/Linux/asan_preload_test-1.cc30
-rw-r--r--test/asan/TestCases/Linux/asan_preload_test-2.cc24
-rw-r--r--test/asan/TestCases/Linux/asan_preload_test-3.cc36
-rw-r--r--test/asan/TestCases/Linux/asan_rt_confict_test-1.cc13
-rw-r--r--test/asan/TestCases/Linux/asan_rt_confict_test-2.cc25
-rw-r--r--test/asan/TestCases/Linux/auto_memory_profile_test.cc32
-rw-r--r--test/asan/TestCases/Linux/calloc-preload.c36
-rw-r--r--test/asan/TestCases/Linux/clang_gcc_abi.cc44
-rw-r--r--test/asan/TestCases/Linux/clone_test.cc44
-rw-r--r--test/asan/TestCases/Linux/coverage-missing.cc92
-rw-r--r--test/asan/TestCases/Linux/cuda_test.cc35
-rw-r--r--test/asan/TestCases/Linux/function-sections-are-bad.cc41
-rw-r--r--test/asan/TestCases/Linux/global-overflow-bfd.cc18
-rw-r--r--test/asan/TestCases/Linux/global-overflow-lld.cc19
-rw-r--r--test/asan/TestCases/Linux/globals-gc-sections-lld.cc15
-rw-r--r--test/asan/TestCases/Linux/init-order-dlopen.cc47
-rw-r--r--test/asan/TestCases/Linux/init_fini_sections.cc30
-rw-r--r--test/asan/TestCases/Linux/initialization-bug-any-order.cc36
-rw-r--r--test/asan/TestCases/Linux/interception_malloc_test.cc23
-rw-r--r--test/asan/TestCases/Linux/interception_readdir_r_test.cc65
-rw-r--r--test/asan/TestCases/Linux/interception_test.cc22
-rw-r--r--test/asan/TestCases/Linux/interface_symbols_linux.cc32
-rw-r--r--test/asan/TestCases/Linux/kernel-area.cc23
-rw-r--r--test/asan/TestCases/Linux/leak.cc16
-rw-r--r--test/asan/TestCases/Linux/leak_check_segv.cc23
-rw-r--r--test/asan/TestCases/Linux/lit.local.cfg9
-rw-r--r--test/asan/TestCases/Linux/local_alias.cc36
-rw-r--r--test/asan/TestCases/Linux/long-object-path.cc7
-rw-r--r--test/asan/TestCases/Linux/longjmp_chk.c51
-rw-r--r--test/asan/TestCases/Linux/malloc-in-qsort.cc53
-rw-r--r--test/asan/TestCases/Linux/malloc_delete_mismatch.cc32
-rw-r--r--test/asan/TestCases/Linux/memmem_test.cc24
-rw-r--r--test/asan/TestCases/Linux/mincore.cc34
-rw-r--r--test/asan/TestCases/Linux/new_delete_mismatch.cc17
-rw-r--r--test/asan/TestCases/Linux/new_delete_mismatch_global.cc16
-rw-r--r--test/asan/TestCases/Linux/new_delete_mismatch_stack.cc17
-rw-r--r--test/asan/TestCases/Linux/nohugepage_test.cc107
-rw-r--r--test/asan/TestCases/Linux/odr-violation.cc65
-rw-r--r--test/asan/TestCases/Linux/odr-vtable.cc26
-rw-r--r--test/asan/TestCases/Linux/odr_c_test.c26
-rw-r--r--test/asan/TestCases/Linux/odr_indicators.cc26
-rw-r--r--test/asan/TestCases/Linux/overflow-in-qsort.cc49
-rw-r--r--test/asan/TestCases/Linux/preinit_test.cc30
-rw-r--r--test/asan/TestCases/Linux/preinstalled_signal.cc111
-rw-r--r--test/asan/TestCases/Linux/print_memory_profile_test.cc39
-rw-r--r--test/asan/TestCases/Linux/printf-fortify-1.c18
-rw-r--r--test/asan/TestCases/Linux/printf-fortify-2.c18
-rw-r--r--test/asan/TestCases/Linux/printf-fortify-3.c22
-rw-r--r--test/asan/TestCases/Linux/printf-fortify-4.c22
-rw-r--r--test/asan/TestCases/Linux/printf-fortify-5.c18
-rw-r--r--test/asan/TestCases/Linux/pthread_create_from_constructor.cc49
-rw-r--r--test/asan/TestCases/Linux/pthread_create_version.cc23
-rw-r--r--test/asan/TestCases/Linux/ptrace.cc132
-rw-r--r--test/asan/TestCases/Linux/quarantine_size_mb.cc28
-rw-r--r--test/asan/TestCases/Linux/read_binary_name_regtest.c55
-rw-r--r--test/asan/TestCases/Linux/recoverable-lsan.cc22
-rw-r--r--test/asan/TestCases/Linux/recvfrom.cc81
-rw-r--r--test/asan/TestCases/Linux/release_to_os_test.cc54
-rw-r--r--test/asan/TestCases/Linux/rlimit_mmap_test.cc16
-rw-r--r--test/asan/TestCases/Linux/sanbox_read_proc_self_maps_test.cc28
-rw-r--r--test/asan/TestCases/Linux/segv_read_write.c26
-rw-r--r--test/asan/TestCases/Linux/shmctl.cc27
-rw-r--r--test/asan/TestCases/Linux/signal_during_stop_the_world.cc60
-rw-r--r--test/asan/TestCases/Linux/sized_delete_test.cc89
-rw-r--r--test/asan/TestCases/Linux/stack-overflow-recovery-mode.cc36
-rw-r--r--test/asan/TestCases/Linux/stack-overflow-sigbus.cc64
-rw-r--r--test/asan/TestCases/Linux/stack-trace-dlclose.cc46
-rw-r--r--test/asan/TestCases/Linux/static_tls.cc31
-rw-r--r--test/asan/TestCases/Linux/stress_dtls.c117
-rw-r--r--test/asan/TestCases/Linux/swapcontext_annotation.cc206
-rw-r--r--test/asan/TestCases/Linux/swapcontext_test.cc90
-rw-r--r--test/asan/TestCases/Linux/syscalls.cc22
-rw-r--r--test/asan/TestCases/Linux/textdomain.c13
-rw-r--r--test/asan/TestCases/Linux/thread_local_quarantine_pthread_join.cc56
-rw-r--r--test/asan/TestCases/Linux/thread_local_quarantine_size_kb.cc45
-rw-r--r--test/asan/TestCases/Linux/uar_signals.cc77
-rw-r--r--test/asan/TestCases/Linux/unpoison_tls.cc35
-rw-r--r--test/asan/TestCases/Posix/asan-sigbus.cpp48
-rw-r--r--test/asan/TestCases/Posix/asan-symbolize-bad-path.cc4
-rw-r--r--test/asan/TestCases/Posix/asan-symbolize-sanity-test.cc64
-rw-r--r--test/asan/TestCases/Posix/asprintf.cc20
-rw-r--r--test/asan/TestCases/Posix/assign_large_valloc_to_global.cc6
-rw-r--r--test/asan/TestCases/Posix/closed-fds.cc35
-rw-r--r--test/asan/TestCases/Posix/concurrent_overflow.cc34
-rw-r--r--test/asan/TestCases/Posix/coverage-fork.cc41
-rw-r--r--test/asan/TestCases/Posix/coverage-module-unloaded.cc51
-rw-r--r--test/asan/TestCases/Posix/coverage-reset.cc67
-rw-r--r--test/asan/TestCases/Posix/coverage.cc77
-rw-r--r--test/asan/TestCases/Posix/current_allocated_bytes.cc44
-rw-r--r--test/asan/TestCases/Posix/deep_call_stack.cc29
-rw-r--r--test/asan/TestCases/Posix/deep_thread_stack.cc58
-rw-r--r--test/asan/TestCases/Posix/dlclose-test.cc108
-rw-r--r--test/asan/TestCases/Posix/fgets_fputs.cc54
-rw-r--r--test/asan/TestCases/Posix/fread_fwrite.cc37
-rw-r--r--test/asan/TestCases/Posix/free_hook_realloc.cc34
-rw-r--r--test/asan/TestCases/Posix/freopen.cc15
-rw-r--r--test/asan/TestCases/Posix/gc-test.cc54
-rw-r--r--test/asan/TestCases/Posix/glob.cc33
-rw-r--r--test/asan/TestCases/Posix/glob_test_root/aa0
-rw-r--r--test/asan/TestCases/Posix/glob_test_root/ab0
-rw-r--r--test/asan/TestCases/Posix/glob_test_root/ba0
-rw-r--r--test/asan/TestCases/Posix/global-registration.c69
-rw-r--r--test/asan/TestCases/Posix/halt_on_error-signals.c101
-rw-r--r--test/asan/TestCases/Posix/halt_on_error-torture.cc80
-rw-r--r--test/asan/TestCases/Posix/halt_on_error_suppress_equal_pcs.cc56
-rw-r--r--test/asan/TestCases/Posix/handle_abort_on_error.cc11
-rw-r--r--test/asan/TestCases/Posix/init-order-pthread-create.cc54
-rw-r--r--test/asan/TestCases/Posix/interception-in-shared-lib-test.cc29
-rw-r--r--test/asan/TestCases/Posix/invalid-pointer-pairs-threads.cc57
-rw-r--r--test/asan/TestCases/Posix/ioctl.cc28
-rw-r--r--test/asan/TestCases/Posix/large_allocator_unpoisons_on_free.cc39
-rw-r--r--test/asan/TestCases/Posix/lit.local.cfg9
-rw-r--r--test/asan/TestCases/Posix/log_path_fork_test.cc.disabled22
-rw-r--r--test/asan/TestCases/Posix/lto-constmerge-odr.cc14
-rw-r--r--test/asan/TestCases/Posix/mmap_limit_mb.cc35
-rw-r--r--test/asan/TestCases/Posix/new_array_cookie_test.cc27
-rw-r--r--test/asan/TestCases/Posix/new_array_cookie_uaf_test.cc41
-rw-r--r--test/asan/TestCases/Posix/new_array_cookie_with_new_from_class.cc40
-rw-r--r--test/asan/TestCases/Posix/no-fd.cc43
-rw-r--r--test/asan/TestCases/Posix/no_asan_gen_globals.c10
-rw-r--r--test/asan/TestCases/Posix/print_cmdline.cc18
-rw-r--r--test/asan/TestCases/Posix/readv.cc32
-rw-r--r--test/asan/TestCases/Posix/shared-lib-test.cc56
-rw-r--r--test/asan/TestCases/Posix/stack-overflow.cc116
-rw-r--r--test/asan/TestCases/Posix/stack-use-after-return.cc114
-rw-r--r--test/asan/TestCases/Posix/start-deactivated.cc146
-rw-r--r--test/asan/TestCases/Posix/strchr.c34
-rw-r--r--test/asan/TestCases/Posix/strerror_r_test.cc14
-rw-r--r--test/asan/TestCases/Posix/strndup_oob_test.cc27
-rw-r--r--test/asan/TestCases/Posix/strndup_oob_test2.cc22
-rw-r--r--test/asan/TestCases/Posix/tsd_dtor_leak.cc44
-rw-r--r--test/asan/TestCases/Posix/wait.cc34
-rw-r--r--test/asan/TestCases/Posix/wait3.cc36
-rw-r--r--test/asan/TestCases/Posix/wait4.cc44
-rw-r--r--test/asan/TestCases/Posix/waitid.cc30
-rw-r--r--test/asan/TestCases/Windows/aligned_mallocs.cc29
-rw-r--r--test/asan/TestCases/Windows/allocators_sanity.cc37
-rw-r--r--test/asan/TestCases/Windows/beginthreadex.cc21
-rw-r--r--test/asan/TestCases/Windows/bind_io_completion_callback.cc61
-rw-r--r--test/asan/TestCases/Windows/bitfield.cc21
-rw-r--r--test/asan/TestCases/Windows/bitfield_uaf.cc34
-rw-r--r--test/asan/TestCases/Windows/calloc_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/calloc_right_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/calloc_uaf.cc20
-rw-r--r--test/asan/TestCases/Windows/coverage-basic.cc25
-rw-r--r--test/asan/TestCases/Windows/coverage-dll-stdio.cc16
-rw-r--r--test/asan/TestCases/Windows/crash_read_write.cc29
-rw-r--r--test/asan/TestCases/Windows/crt_initializers.cc31
-rw-r--r--test/asan/TestCases/Windows/delay_dbghelp.cc18
-rw-r--r--test/asan/TestCases/Windows/demangled_names.cc50
-rw-r--r--test/asan/TestCases/Windows/dll_aligned_mallocs.cc34
-rw-r--r--test/asan/TestCases/Windows/dll_allocators_sanity.cc39
-rw-r--r--test/asan/TestCases/Windows/dll_and_lib.cc19
-rw-r--r--test/asan/TestCases/Windows/dll_cerr.cc23
-rw-r--r--test/asan/TestCases/Windows/dll_control_c.cc130
-rw-r--r--test/asan/TestCases/Windows/dll_global_dead_strip.c28
-rw-r--r--test/asan/TestCases/Windows/dll_heap_allocation.cc30
-rw-r--r--test/asan/TestCases/Windows/dll_host.cc75
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_memchr.cc27
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_memcpy.cc32
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_memcpy_indirect.cc34
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_memset.cc32
-rw-r--r--test/asan/TestCases/Windows/dll_intercept_strlen.cc28
-rw-r--r--test/asan/TestCases/Windows/dll_large_function.cc12
-rw-r--r--test/asan/TestCases/Windows/dll_malloc_left_oob.cc23
-rw-r--r--test/asan/TestCases/Windows/dll_malloc_uaf.cc28
-rw-r--r--test/asan/TestCases/Windows/dll_noreturn.cc28
-rw-r--r--test/asan/TestCases/Windows/dll_null_deref.cc18
-rw-r--r--test/asan/TestCases/Windows/dll_operator_array_new_left_oob.cc25
-rw-r--r--test/asan/TestCases/Windows/dll_operator_array_new_with_dtor_left_oob.cc33
-rw-r--r--test/asan/TestCases/Windows/dll_poison_unpoison.cc35
-rw-r--r--test/asan/TestCases/Windows/dll_report_globals_symbolization_at_startup.cc40
-rw-r--r--test/asan/TestCases/Windows/dll_seh.cc50
-rw-r--r--test/asan/TestCases/Windows/dll_stack_use_after_return.cc28
-rw-r--r--test/asan/TestCases/Windows/dll_thread_stack_array_left_oob.cc36
-rw-r--r--test/asan/TestCases/Windows/double_free.cc21
-rw-r--r--test/asan/TestCases/Windows/double_operator_delete.cc25
-rw-r--r--test/asan/TestCases/Windows/free_hook_realloc.cc40
-rw-r--r--test/asan/TestCases/Windows/fuse-lld-globals.cc18
-rw-r--r--test/asan/TestCases/Windows/fuse-lld.cc19
-rw-r--r--test/asan/TestCases/Windows/global_const_string.cc12
-rw-r--r--test/asan/TestCases/Windows/global_const_string_oob.cc20
-rw-r--r--test/asan/TestCases/Windows/global_dead_strip.c23
-rw-r--r--test/asan/TestCases/Windows/hello_world.cc9
-rw-r--r--test/asan/TestCases/Windows/intercept_memcpy.cc31
-rw-r--r--test/asan/TestCases/Windows/intercept_strdup.cc32
-rw-r--r--test/asan/TestCases/Windows/intercept_strlen.cc27
-rw-r--r--test/asan/TestCases/Windows/interface_symbols_windows.cc53
-rw-r--r--test/asan/TestCases/Windows/iostream_sbo.cc18
-rw-r--r--test/asan/TestCases/Windows/lit.local.cfg14
-rw-r--r--test/asan/TestCases/Windows/longjmp.cc26
-rw-r--r--test/asan/TestCases/Windows/malloc_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/malloc_right_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/malloc_uaf.cc20
-rw-r--r--test/asan/TestCases/Windows/null_deref.cc15
-rw-r--r--test/asan/TestCases/Windows/null_deref_multiple_dlls.cc40
-rw-r--r--test/asan/TestCases/Windows/oom.cc12
-rw-r--r--test/asan/TestCases/Windows/operator_array_new_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/operator_array_new_right_oob.cc18
-rw-r--r--test/asan/TestCases/Windows/operator_array_new_uaf.cc24
-rw-r--r--test/asan/TestCases/Windows/operator_array_new_with_dtor_left_oob.cc25
-rw-r--r--test/asan/TestCases/Windows/operator_delete_wrong_argument.cc12
-rw-r--r--test/asan/TestCases/Windows/operator_new_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/operator_new_right_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/operator_new_uaf.cc22
-rw-r--r--test/asan/TestCases/Windows/queue_user_work_item.cc51
-rw-r--r--test/asan/TestCases/Windows/queue_user_work_item_report.cc27
-rw-r--r--test/asan/TestCases/Windows/realloc_left_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/realloc_right_oob.cc17
-rw-r--r--test/asan/TestCases/Windows/realloc_uaf.cc20
-rw-r--r--test/asan/TestCases/Windows/report_after_syminitialize.cc25
-rw-r--r--test/asan/TestCases/Windows/report_globals_reload_dll.cc51
-rw-r--r--test/asan/TestCases/Windows/report_globals_vs_freelibrary.cc47
-rw-r--r--test/asan/TestCases/Windows/seh.cc58
-rw-r--r--test/asan/TestCases/Windows/shadow_conflict_32.cc29
-rw-r--r--test/asan/TestCases/Windows/shadow_mapping_failure.cc18
-rw-r--r--test/asan/TestCases/Windows/stack_array_left_oob.cc16
-rw-r--r--test/asan/TestCases/Windows/stack_array_right_oob.cc16
-rw-r--r--test/asan/TestCases/Windows/stack_array_sanity.cc12
-rw-r--r--test/asan/TestCases/Windows/stack_use_after_return.cc22
-rw-r--r--test/asan/TestCases/Windows/symbols_path.cc22
-rw-r--r--test/asan/TestCases/Windows/thread_simple.cc26
-rw-r--r--test/asan/TestCases/Windows/thread_stack_array_left_oob.cc27
-rw-r--r--test/asan/TestCases/Windows/thread_stack_array_right_oob.cc27
-rw-r--r--test/asan/TestCases/Windows/thread_stack_reuse.cc37
-rw-r--r--test/asan/TestCases/Windows/thread_stress.cc30
-rw-r--r--test/asan/TestCases/Windows/thread_suspended.cc27
-rw-r--r--test/asan/TestCases/Windows/tls_init.cc51
-rw-r--r--test/asan/TestCases/Windows/unsymbolized.cc25
-rw-r--r--test/asan/TestCases/Windows/use_after_realloc.cc23
-rw-r--r--test/asan/TestCases/Windows/use_after_return_linkage.cc12
-rw-r--r--test/asan/TestCases/Windows/user-exception.cc36
-rw-r--r--test/asan/TestCases/Windows/windows_h.cc7
-rw-r--r--test/asan/TestCases/Windows/wrong_downcast_on_heap.cc26
-rw-r--r--test/asan/TestCases/Windows/wrong_downcast_on_stack.cc26
-rw-r--r--test/asan/TestCases/alloca_big_alignment.cc18
-rw-r--r--test/asan/TestCases/alloca_constant_size.cc54
-rw-r--r--test/asan/TestCases/alloca_detect_custom_size_.cc23
-rw-r--r--test/asan/TestCases/alloca_instruments_all_paddings.cc24
-rw-r--r--test/asan/TestCases/alloca_loop_unpoisoning.cc42
-rw-r--r--test/asan/TestCases/alloca_overflow_partial.cc18
-rw-r--r--test/asan/TestCases/alloca_overflow_right.cc18
-rw-r--r--test/asan/TestCases/alloca_safe_access.cc17
-rw-r--r--test/asan/TestCases/alloca_underflow_left.cc18
-rw-r--r--test/asan/TestCases/alloca_vla_interact.cc49
-rw-r--r--test/asan/TestCases/asan_and_llvm_coverage_test.cc13
-rw-r--r--test/asan/TestCases/asan_options-help.cc9
-rw-r--r--test/asan/TestCases/atexit_stats.cc18
-rw-r--r--test/asan/TestCases/atoi_strict.c55
-rw-r--r--test/asan/TestCases/atol_strict.c55
-rw-r--r--test/asan/TestCases/atoll_strict.c58
-rw-r--r--test/asan/TestCases/blacklist.cc38
-rw-r--r--test/asan/TestCases/calloc-overflow.cc21
-rw-r--r--test/asan/TestCases/contiguous_container.cc83
-rw-r--r--test/asan/TestCases/contiguous_container_crash.cc53
-rw-r--r--test/asan/TestCases/coverage-and-lsan.cc20
-rw-r--r--test/asan/TestCases/coverage-disabled.cc15
-rw-r--r--test/asan/TestCases/coverage-trace-pc.cc31
-rw-r--r--test/asan/TestCases/debug_double_free.cc53
-rw-r--r--test/asan/TestCases/debug_locate.cc80
-rw-r--r--test/asan/TestCases/debug_mapping.cc30
-rw-r--r--test/asan/TestCases/debug_ppc64_mapping.cc52
-rw-r--r--test/asan/TestCases/debug_report.cc69
-rw-r--r--test/asan/TestCases/debug_stacks.cc74
-rw-r--r--test/asan/TestCases/deep_stack_uaf.cc35
-rw-r--r--test/asan/TestCases/deep_tail_call.cc20
-rw-r--r--test/asan/TestCases/default_blacklist.cc7
-rw-r--r--test/asan/TestCases/default_options.cc18
-rw-r--r--test/asan/TestCases/describe_address.cc19
-rw-r--r--test/asan/TestCases/double-free.cc31
-rw-r--r--test/asan/TestCases/error_report_callback.cc21
-rw-r--r--test/asan/TestCases/exitcode.cc130
-rw-r--r--test/asan/TestCases/force_inline_opt0.cc14
-rw-r--r--test/asan/TestCases/frexp_interceptor.cc16
-rw-r--r--test/asan/TestCases/global-address.cpp12
-rw-r--r--test/asan/TestCases/global-demangle.cc17
-rw-r--r--test/asan/TestCases/global-location.cc38
-rw-r--r--test/asan/TestCases/global-overflow.cc21
-rw-r--r--test/asan/TestCases/global-underflow.cc17
-rw-r--r--test/asan/TestCases/halt_on_error-1.c29
-rw-r--r--test/asan/TestCases/handle_noreturn_bug.cc13
-rw-r--r--test/asan/TestCases/heap-overflow-large.cc23
-rw-r--r--test/asan/TestCases/heap-overflow.cc24
-rw-r--r--test/asan/TestCases/heavy_uar_test.cc70
-rw-r--r--test/asan/TestCases/huge_negative_hea_oob.cc13
-rw-r--r--test/asan/TestCases/ill.cc31
-rw-r--r--test/asan/TestCases/init-order-atexit.cc31
-rw-r--r--test/asan/TestCases/initialization-blacklist.cc29
-rw-r--r--test/asan/TestCases/initialization-bug.cc51
-rw-r--r--test/asan/TestCases/initialization-constexpr.cc27
-rw-r--r--test/asan/TestCases/initialization-nobug.cc48
-rw-r--r--test/asan/TestCases/inline.cc19
-rw-r--r--test/asan/TestCases/intercept-rethrow-exception.cc68
-rw-r--r--test/asan/TestCases/interception_failure_test.cc35
-rw-r--r--test/asan/TestCases/interface_test.cc10
-rw-r--r--test/asan/TestCases/intra-object-overflow.cc33
-rw-r--r--test/asan/TestCases/invalid-free.cc22
-rw-r--r--test/asan/TestCases/invalid-pointer-pairs-compare-errors.cc107
-rw-r--r--test/asan/TestCases/invalid-pointer-pairs-compare-null.cc42
-rw-r--r--test/asan/TestCases/invalid-pointer-pairs-compare-success.cc74
-rw-r--r--test/asan/TestCases/invalid-pointer-pairs-subtract-errors.cc48
-rw-r--r--test/asan/TestCases/invalid-pointer-pairs-subtract-success.cc33
-rw-r--r--test/asan/TestCases/invalid-pointer-pairs.cc44
-rw-r--r--test/asan/TestCases/large_func_test.cc52
-rw-r--r--test/asan/TestCases/log-path_test.cc48
-rw-r--r--test/asan/TestCases/longjmp.cc25
-rw-r--r--test/asan/TestCases/lsan_annotations.cc16
-rw-r--r--test/asan/TestCases/malloc-no-intercept.c32
-rw-r--r--test/asan/TestCases/malloc-size-too-big.cc28
-rw-r--r--test/asan/TestCases/malloc_context_size.cc27
-rw-r--r--test/asan/TestCases/malloc_fill.cc22
-rw-r--r--test/asan/TestCases/max_redzone.cc26
-rw-r--r--test/asan/TestCases/memcmp_strict_test.cc15
-rw-r--r--test/asan/TestCases/memcmp_test.cc17
-rw-r--r--test/asan/TestCases/memset_test.cc71
-rw-r--r--test/asan/TestCases/non-executable-pc.cpp30
-rw-r--r--test/asan/TestCases/null_deref.cc24
-rw-r--r--test/asan/TestCases/on_error_callback.cc20
-rw-r--r--test/asan/TestCases/partial_right.cc13
-rw-r--r--test/asan/TestCases/pass-object-byval.cc40
-rw-r--r--test/asan/TestCases/pass-struct-byval-uar.cc38
-rw-r--r--test/asan/TestCases/pass-struct-byval.cc23
-rw-r--r--test/asan/TestCases/poison_partial.cc19
-rw-r--r--test/asan/TestCases/pr33372.cc39
-rw-r--r--test/asan/TestCases/print_summary.cc16
-rw-r--r--test/asan/TestCases/printf-1.c25
-rw-r--r--test/asan/TestCases/printf-2.c27
-rw-r--r--test/asan/TestCases/printf-3.c30
-rw-r--r--test/asan/TestCases/printf-4.c26
-rw-r--r--test/asan/TestCases/printf-5.c25
-rw-r--r--test/asan/TestCases/printf-m.c14
-rw-r--r--test/asan/TestCases/realloc.cc21
-rw-r--r--test/asan/TestCases/sanity_check_pure_c.c20
-rw-r--r--test/asan/TestCases/scariness_score_test.cc212
-rw-r--r--test/asan/TestCases/set_shadow_test.c69
-rw-r--r--test/asan/TestCases/sleep_after_init.c10
-rw-r--r--test/asan/TestCases/sleep_before_dying.c10
-rw-r--r--test/asan/TestCases/small_memcpy_test.cc29
-rw-r--r--test/asan/TestCases/speculative_load.cc54
-rw-r--r--test/asan/TestCases/speculative_load2.cc24
-rw-r--r--test/asan/TestCases/stack-buffer-overflow-with-position.cc45
-rw-r--r--test/asan/TestCases/stack-buffer-overflow.cc16
-rw-r--r--test/asan/TestCases/stack-frame-demangle.cc22
-rw-r--r--test/asan/TestCases/stack-oob-frames.cc59
-rw-r--r--test/asan/TestCases/strcasestr-1.c25
-rw-r--r--test/asan/TestCases/strcasestr-2.c25
-rw-r--r--test/asan/TestCases/strcasestr_strict.c28
-rw-r--r--test/asan/TestCases/strcat-overlap.cc54
-rw-r--r--test/asan/TestCases/strcat_strict.c44
-rw-r--r--test/asan/TestCases/strchr_strict.c22
-rw-r--r--test/asan/TestCases/strcmp_strict.c26
-rw-r--r--test/asan/TestCases/strcpy-overlap.cc48
-rw-r--r--test/asan/TestCases/strcspn-1.c20
-rw-r--r--test/asan/TestCases/strcspn-2.c20
-rw-r--r--test/asan/TestCases/strcspn_strict.c26
-rw-r--r--test/asan/TestCases/strdup_oob_test.cc31
-rw-r--r--test/asan/TestCases/strip_path_prefix.c12
-rw-r--r--test/asan/TestCases/strncasecmp_strict.c67
-rw-r--r--test/asan/TestCases/strncat-overlap.cc48
-rw-r--r--test/asan/TestCases/strncat_strict.c44
-rw-r--r--test/asan/TestCases/strncmp_strict.c65
-rw-r--r--test/asan/TestCases/strncpy-overflow.cc29
-rw-r--r--test/asan/TestCases/strncpy-overlap.cc48
-rw-r--r--test/asan/TestCases/strpbrk-1.c20
-rw-r--r--test/asan/TestCases/strpbrk-2.c20
-rw-r--r--test/asan/TestCases/strpbrk_strict.c25
-rw-r--r--test/asan/TestCases/strspn-1.c20
-rw-r--r--test/asan/TestCases/strspn-2.c20
-rw-r--r--test/asan/TestCases/strspn_strict.c25
-rw-r--r--test/asan/TestCases/strstr-1.c21
-rw-r--r--test/asan/TestCases/strstr-2.c21
-rw-r--r--test/asan/TestCases/strstr_strict.c25
-rw-r--r--test/asan/TestCases/strtok.c103
-rw-r--r--test/asan/TestCases/strtol_strict.c136
-rw-r--r--test/asan/TestCases/strtoll_strict.c120
-rw-r--r--test/asan/TestCases/suppressions-exec-relative-location.cc48
-rw-r--r--test/asan/TestCases/suppressions-function.cc35
-rw-r--r--test/asan/TestCases/suppressions-interceptor.cc24
-rw-r--r--test/asan/TestCases/suppressions-library.cc43
-rw-r--r--test/asan/TestCases/throw_call_test.cc49
-rw-r--r--test/asan/TestCases/throw_catch.cc63
-rw-r--r--test/asan/TestCases/throw_invoke_test.cc51
-rw-r--r--test/asan/TestCases/time_interceptor.cc22
-rw-r--r--test/asan/TestCases/uar_and_exceptions.cc40
-rw-r--r--test/asan/TestCases/unaligned_loads_and_stores.cc52
-rw-r--r--test/asan/TestCases/use-after-delete.cc30
-rw-r--r--test/asan/TestCases/use-after-free-right.cc35
-rw-r--r--test/asan/TestCases/use-after-free.cc35
-rw-r--r--test/asan/TestCases/use-after-poison.cc20
-rw-r--r--test/asan/TestCases/use-after-scope-capture.cc17
-rw-r--r--test/asan/TestCases/use-after-scope-conversion.cc50
-rw-r--r--test/asan/TestCases/use-after-scope-dtor-order.cc26
-rw-r--r--test/asan/TestCases/use-after-scope-goto.cc73
-rw-r--r--test/asan/TestCases/use-after-scope-if.cc15
-rw-r--r--test/asan/TestCases/use-after-scope-inlined.cc28
-rw-r--r--test/asan/TestCases/use-after-scope-loop-bug.cc17
-rw-r--r--test/asan/TestCases/use-after-scope-loop-removed.cc18
-rw-r--r--test/asan/TestCases/use-after-scope-loop.cc14
-rw-r--r--test/asan/TestCases/use-after-scope-nobug.cc16
-rw-r--r--test/asan/TestCases/use-after-scope-temp.cc21
-rw-r--r--test/asan/TestCases/use-after-scope-temp2.cc20
-rw-r--r--test/asan/TestCases/use-after-scope-types.cc74
-rw-r--r--test/asan/TestCases/use-after-scope.cc21
-rw-r--r--test/asan/TestCases/verbose-log-path_test.cc26
-rw-r--r--test/asan/TestCases/vla_chrome_testcase.cc30
-rw-r--r--test/asan/TestCases/vla_condition_overflow.cc22
-rw-r--r--test/asan/TestCases/vla_loop_overfow.cc22
-rw-r--r--test/asan/TestCases/zero_page_pc.cc16
-rw-r--r--test/asan/Unit/lit.site.cfg.in32
-rw-r--r--test/asan/lit.cfg227
-rw-r--r--test/asan/lit.site.cfg.in16
-rw-r--r--test/builtins/CMakeLists.txt57
-rw-r--r--test/builtins/TestCases/Darwin/lit.local.cfg9
-rw-r--r--test/builtins/TestCases/Darwin/os_version_check_test.c19
-rw-r--r--test/builtins/TestCases/Darwin/os_version_check_test_no_core_foundation.c12
-rw-r--r--test/builtins/Unit/absvdi2_test.c66
-rw-r--r--test/builtins/Unit/absvsi2_test.c66
-rw-r--r--test/builtins/Unit/absvti2_test.c86
-rw-r--r--test/builtins/Unit/adddf3vfp_test.c50
-rw-r--r--test/builtins/Unit/addsf3vfp_test.c50
-rw-r--r--test/builtins/Unit/addtf3_test.c83
-rw-r--r--test/builtins/Unit/addvdi3_test.c59
-rw-r--r--test/builtins/Unit/addvsi3_test.c59
-rw-r--r--test/builtins/Unit/addvti3_test.c96
-rw-r--r--test/builtins/Unit/arm/aeabi_cdcmpeq_test.c73
-rw-r--r--test/builtins/Unit/arm/aeabi_cdcmple_test.c96
-rw-r--r--test/builtins/Unit/arm/aeabi_cfcmpeq_test.c73
-rw-r--r--test/builtins/Unit/arm/aeabi_cfcmple_test.c96
-rw-r--r--test/builtins/Unit/arm/aeabi_drsub_test.c49
-rw-r--r--test/builtins/Unit/arm/aeabi_frsub_test.c49
-rw-r--r--test/builtins/Unit/arm/aeabi_idivmod_test.c82
-rw-r--r--test/builtins/Unit/arm/aeabi_uidivmod_test.c69
-rw-r--r--test/builtins/Unit/arm/aeabi_uldivmod_test.c20659
-rw-r--r--test/builtins/Unit/arm/call_apsr.S43
-rw-r--r--test/builtins/Unit/arm/call_apsr.h39
-rw-r--r--test/builtins/Unit/ashldi3_test.c78
-rw-r--r--test/builtins/Unit/ashlti3_test.c177
-rw-r--r--test/builtins/Unit/ashrdi3_test.c119
-rw-r--r--test/builtins/Unit/ashrti3_test.c175
-rw-r--r--test/builtins/Unit/bswapdi2_test.c37
-rw-r--r--test/builtins/Unit/bswapsi2_test.c37
-rw-r--r--test/builtins/Unit/clear_cache_test.c87
-rw-r--r--test/builtins/Unit/clzdi2_test.c69
-rw-r--r--test/builtins/Unit/clzsi2_test.c600
-rw-r--r--test/builtins/Unit/clzti2_test.c92
-rw-r--r--test/builtins/Unit/cmpdi2_test.c78
-rw-r--r--test/builtins/Unit/cmpti2_test.c114
-rw-r--r--test/builtins/Unit/comparedf2_test.c481
-rw-r--r--test/builtins/Unit/comparesf2_test.c481
-rw-r--r--test/builtins/Unit/compiler_rt_logb_test.c63
-rw-r--r--test/builtins/Unit/compiler_rt_logbf_test.c63
-rw-r--r--test/builtins/Unit/compiler_rt_logbl_test.c79
-rw-r--r--test/builtins/Unit/cpu_model_test.c30
-rw-r--r--test/builtins/Unit/ctzdi2_test.c68
-rw-r--r--test/builtins/Unit/ctzsi2_test.c570
-rw-r--r--test/builtins/Unit/ctzti2_test.c86
-rw-r--r--test/builtins/Unit/divdc3_test.c374
-rw-r--r--test/builtins/Unit/divdf3vfp_test.c50
-rw-r--r--test/builtins/Unit/divdi3_test.c59
-rw-r--r--test/builtins/Unit/divmodsi4_test.c74
-rw-r--r--test/builtins/Unit/divsc3_test.c374
-rw-r--r--test/builtins/Unit/divsf3vfp_test.c50
-rw-r--r--test/builtins/Unit/divsi3_test.c57
-rw-r--r--test/builtins/Unit/divtc3_test.c377
-rw-r--r--test/builtins/Unit/divtf3_test.c96
-rw-r--r--test/builtins/Unit/divti3_test.c80
-rw-r--r--test/builtins/Unit/divxc3_test.c385
-rw-r--r--test/builtins/Unit/enable_execute_stack_test.c58
-rw-r--r--test/builtins/Unit/endianness.h109
-rw-r--r--test/builtins/Unit/eqdf2vfp_test.c57
-rw-r--r--test/builtins/Unit/eqsf2vfp_test.c53
-rw-r--r--test/builtins/Unit/eqtf2_test.c90
-rw-r--r--test/builtins/Unit/extebdsfdf2vfp_test.c50
-rw-r--r--test/builtins/Unit/extenddftf2_test.c84
-rw-r--r--test/builtins/Unit/extendhfsf2_test.c114
-rw-r--r--test/builtins/Unit/extendsftf2_test.c85
-rw-r--r--test/builtins/Unit/ffsdi2_test.c67
-rw-r--r--test/builtins/Unit/ffssi2_test.c57
-rw-r--r--test/builtins/Unit/ffsti2_test.c85
-rw-r--r--test/builtins/Unit/fixdfdi_test.c95
-rw-r--r--test/builtins/Unit/fixdfsivfp_test.c52
-rw-r--r--test/builtins/Unit/fixdfti_test.c125
-rw-r--r--test/builtins/Unit/fixsfdi_test.c85
-rw-r--r--test/builtins/Unit/fixsfsivfp_test.c54
-rw-r--r--test/builtins/Unit/fixsfti_test.c113
-rw-r--r--test/builtins/Unit/fixtfdi_test.c72
-rw-r--r--test/builtins/Unit/fixtfsi_test.c66
-rw-r--r--test/builtins/Unit/fixtfti_test.c84
-rw-r--r--test/builtins/Unit/fixunsdfdi_test.c107
-rw-r--r--test/builtins/Unit/fixunsdfsi_test.c103
-rw-r--r--test/builtins/Unit/fixunsdfsivfp_test.c52
-rw-r--r--test/builtins/Unit/fixunsdfti_test.c133
-rw-r--r--test/builtins/Unit/fixunssfdi_test.c96
-rw-r--r--test/builtins/Unit/fixunssfsi_test.c96
-rw-r--r--test/builtins/Unit/fixunssfsivfp_test.c52
-rw-r--r--test/builtins/Unit/fixunssfti_test.c122
-rw-r--r--test/builtins/Unit/fixunstfdi_test.c125
-rw-r--r--test/builtins/Unit/fixunstfsi_test.c68
-rw-r--r--test/builtins/Unit/fixunstfti_test.c106
-rw-r--r--test/builtins/Unit/fixunsxfdi_test.c125
-rw-r--r--test/builtins/Unit/fixunsxfsi_test.c106
-rw-r--r--test/builtins/Unit/fixunsxfti_test.c144
-rw-r--r--test/builtins/Unit/fixxfdi_test.c116
-rw-r--r--test/builtins/Unit/fixxfti_test.c149
-rw-r--r--test/builtins/Unit/floatdidf_test.c138
-rw-r--r--test/builtins/Unit/floatdisf_test.c96
-rw-r--r--test/builtins/Unit/floatditf_test.c70
-rw-r--r--test/builtins/Unit/floatdixf_test.c145
-rw-r--r--test/builtins/Unit/floatsidfvfp_test.c52
-rw-r--r--test/builtins/Unit/floatsisfvfp_test.c52
-rw-r--r--test/builtins/Unit/floatsitf_test.c62
-rw-r--r--test/builtins/Unit/floattidf_test.c182
-rw-r--r--test/builtins/Unit/floattisf_test.c138
-rw-r--r--test/builtins/Unit/floattitf_test.c214
-rw-r--r--test/builtins/Unit/floattixf_test.c215
-rw-r--r--test/builtins/Unit/floatundidf_test.c133
-rw-r--r--test/builtins/Unit/floatundisf_test.c97
-rw-r--r--test/builtins/Unit/floatunditf_test.c68
-rw-r--r--test/builtins/Unit/floatundixf_test.c146
-rw-r--r--test/builtins/Unit/floatunsitf_test.c57
-rw-r--r--test/builtins/Unit/floatunssidfvfp_test.c52
-rw-r--r--test/builtins/Unit/floatunssisfvfp_test.c51
-rw-r--r--test/builtins/Unit/floatuntidf_test.c176
-rw-r--r--test/builtins/Unit/floatuntisf_test.c166
-rw-r--r--test/builtins/Unit/floatuntitf_test.c221
-rw-r--r--test/builtins/Unit/floatuntixf_test.c222
-rw-r--r--test/builtins/Unit/fp_test.h279
-rw-r--r--test/builtins/Unit/gcc_personality_test.c45
-rw-r--r--test/builtins/Unit/gcc_personality_test_helper.cxx85
-rw-r--r--test/builtins/Unit/gedf2vfp_test.c55
-rw-r--r--test/builtins/Unit/gesf2vfp_test.c55
-rw-r--r--test/builtins/Unit/getf2_test.c90
-rw-r--r--test/builtins/Unit/gtdf2vfp_test.c55
-rw-r--r--test/builtins/Unit/gtsf2vfp_test.c55
-rw-r--r--test/builtins/Unit/gttf2_test.c90
-rw-r--r--test/builtins/Unit/ledf2vfp_test.c55
-rw-r--r--test/builtins/Unit/lesf2vfp_test.c55
-rw-r--r--test/builtins/Unit/letf2_test.c90
-rw-r--r--test/builtins/Unit/lit.cfg93
-rw-r--r--test/builtins/Unit/lit.site.cfg.in13
-rw-r--r--test/builtins/Unit/lshrdi3_test.c119
-rw-r--r--test/builtins/Unit/lshrti3_test.c175
-rw-r--r--test/builtins/Unit/ltdf2vfp_test.c53
-rw-r--r--test/builtins/Unit/ltsf2vfp_test.c55
-rw-r--r--test/builtins/Unit/lttf2_test.c90
-rw-r--r--test/builtins/Unit/moddi3_test.c63
-rw-r--r--test/builtins/Unit/modsi3_test.c58
-rw-r--r--test/builtins/Unit/modti3_test.c97
-rw-r--r--test/builtins/Unit/muldc3_test.c370
-rw-r--r--test/builtins/Unit/muldf3vfp_test.c52
-rw-r--r--test/builtins/Unit/muldi3_test.c111
-rw-r--r--test/builtins/Unit/mulodi4_test.c179
-rw-r--r--test/builtins/Unit/mulosi4_test.c157
-rw-r--r--test/builtins/Unit/muloti4_test.c282
-rw-r--r--test/builtins/Unit/mulsc3_test.c374
-rw-r--r--test/builtins/Unit/mulsf3vfp_test.c52
-rw-r--r--test/builtins/Unit/multc3_test.c376
-rw-r--r--test/builtins/Unit/multf3_test.c97
-rw-r--r--test/builtins/Unit/multi3_test.c136
-rw-r--r--test/builtins/Unit/mulvdi3_test.c176
-rw-r--r--test/builtins/Unit/mulvsi3_test.c149
-rw-r--r--test/builtins/Unit/mulvti3_test.c262
-rw-r--r--test/builtins/Unit/mulxc3_test.c381
-rw-r--r--test/builtins/Unit/nedf2vfp_test.c53
-rw-r--r--test/builtins/Unit/negdf2vfp_test.c50
-rw-r--r--test/builtins/Unit/negdi2_test.c85
-rw-r--r--test/builtins/Unit/negsf2vfp_test.c50
-rw-r--r--test/builtins/Unit/negti2_test.c129
-rw-r--r--test/builtins/Unit/negvdi2_test.c58
-rw-r--r--test/builtins/Unit/negvsi2_test.c57
-rw-r--r--test/builtins/Unit/negvti2_test.c111
-rw-r--r--test/builtins/Unit/nesf2vfp_test.c53
-rw-r--r--test/builtins/Unit/netf2_test.c90
-rw-r--r--test/builtins/Unit/paritydi2_test.c52
-rw-r--r--test/builtins/Unit/paritysi2_test.c51
-rw-r--r--test/builtins/Unit/parityti2_test.c66
-rw-r--r--test/builtins/Unit/popcountdi2_test.c64
-rw-r--r--test/builtins/Unit/popcountsi2_test.c63
-rw-r--r--test/builtins/Unit/popcountti2_test.c84
-rw-r--r--test/builtins/Unit/powidf2_test.c225
-rw-r--r--test/builtins/Unit/powisf2_test.c225
-rw-r--r--test/builtins/Unit/powitf2_test.c234
-rw-r--r--test/builtins/Unit/powixf2_test.c235
-rw-r--r--test/builtins/Unit/ppc/DD.h14
-rw-r--r--test/builtins/Unit/ppc/fixtfdi_test.c479
-rw-r--r--test/builtins/Unit/ppc/fixunstfti_test.c52
-rw-r--r--test/builtins/Unit/ppc/fixunstfti_test.h706
-rw-r--r--test/builtins/Unit/ppc/floatditf_test.c33
-rw-r--r--test/builtins/Unit/ppc/floatditf_test.h38018
-rw-r--r--test/builtins/Unit/ppc/floattitf_test.c59
-rw-r--r--test/builtins/Unit/ppc/floattitf_test.h197
-rw-r--r--test/builtins/Unit/ppc/floatunditf_test.c33
-rw-r--r--test/builtins/Unit/ppc/floatunditf_test.h19014
-rw-r--r--test/builtins/Unit/ppc/qadd_test.c1874
-rw-r--r--test/builtins/Unit/ppc/qdiv_test.c797
-rw-r--r--test/builtins/Unit/ppc/qmul_test.c795
-rw-r--r--test/builtins/Unit/ppc/qsub_test.c1876
-rwxr-xr-xtest/builtins/Unit/ppc/test18
-rw-r--r--test/builtins/Unit/riscv/mulsi3_test.c119
-rw-r--r--test/builtins/Unit/subdf3vfp_test.c50
-rw-r--r--test/builtins/Unit/subsf3vfp_test.c50
-rw-r--r--test/builtins/Unit/subtf3_test.c76
-rw-r--r--test/builtins/Unit/subvdi3_test.c61
-rw-r--r--test/builtins/Unit/subvsi3_test.c61
-rw-r--r--test/builtins/Unit/subvti3_test.c82
-rwxr-xr-xtest/builtins/Unit/test68
-rw-r--r--test/builtins/Unit/trampoline_setup_test.c64
-rw-r--r--test/builtins/Unit/truncdfhf2_test.c116
-rw-r--r--test/builtins/Unit/truncdfsf2_test.c40
-rw-r--r--test/builtins/Unit/truncdfsf2vfp_test.c52
-rw-r--r--test/builtins/Unit/truncsfhf2_test.c116
-rw-r--r--test/builtins/Unit/trunctfdf2_test.c78
-rw-r--r--test/builtins/Unit/trunctfsf2_test.c77
-rw-r--r--test/builtins/Unit/ucmpdi2_test.c76
-rw-r--r--test/builtins/Unit/ucmpti2_test.c118
-rw-r--r--test/builtins/Unit/udivdi3_test.c45
-rw-r--r--test/builtins/Unit/udivmoddi4_test.c20640
-rw-r--r--test/builtins/Unit/udivmodsi4_test.c60
-rw-r--r--test/builtins/Unit/udivmodti4_test.c65355
-rw-r--r--test/builtins/Unit/udivsi3_test.c176
-rw-r--r--test/builtins/Unit/udivti3_test.c69
-rw-r--r--test/builtins/Unit/umoddi3_test.c45
-rw-r--r--test/builtins/Unit/umodsi3_test.c176
-rw-r--r--test/builtins/Unit/umodti3_test.c67
-rw-r--r--test/builtins/Unit/unorddf2vfp_test.c51
-rw-r--r--test/builtins/Unit/unordsf2vfp_test.c51
-rw-r--r--test/builtins/Unit/unordtf2_test.c66
-rw-r--r--test/builtins/lit.cfg20
-rw-r--r--test/builtins/lit.site.cfg.in7
-rw-r--r--test/builtins/timing/ashldi3.c49
-rw-r--r--test/builtins/timing/ashrdi3.c49
-rw-r--r--test/builtins/timing/divdi3.c52
-rw-r--r--test/builtins/timing/floatdidf.c47
-rw-r--r--test/builtins/timing/floatdisf.c47
-rw-r--r--test/builtins/timing/floatdixf.c47
-rw-r--r--test/builtins/timing/floatundidf.c44
-rw-r--r--test/builtins/timing/floatundisf.c47
-rw-r--r--test/builtins/timing/floatundixf.c47
-rw-r--r--test/builtins/timing/lshrdi3.c49
-rw-r--r--test/builtins/timing/moddi3.c52
-rw-r--r--test/builtins/timing/modsi3.c52
-rw-r--r--test/builtins/timing/muldi3.c52
-rw-r--r--test/builtins/timing/negdi2.c50
-rwxr-xr-xtest/builtins/timing/time39
-rw-r--r--test/builtins/timing/timing.h28
-rw-r--r--test/builtins/timing/udivdi3.c52
-rw-r--r--test/builtins/timing/umoddi3.c52
-rw-r--r--test/cfi/CMakeLists.txt104
-rw-r--r--test/cfi/README.txt8
-rw-r--r--test/cfi/anon-namespace.cpp91
-rw-r--r--test/cfi/bad-cast.cpp137
-rw-r--r--test/cfi/bad-split.cpp21
-rw-r--r--test/cfi/base-derived-destructor.cpp93
-rw-r--r--test/cfi/create-derivers.test21
-rw-r--r--test/cfi/cross-dso-diagnostic.cpp47
-rw-r--r--test/cfi/cross-dso/icall/diag.cpp159
-rw-r--r--test/cfi/cross-dso/icall/dlopen.cpp149
-rw-r--r--test/cfi/cross-dso/icall/icall-from-dso.cpp34
-rw-r--r--test/cfi/cross-dso/icall/icall.cpp29
-rw-r--r--test/cfi/cross-dso/icall/lit.local.cfg3
-rw-r--r--test/cfi/cross-dso/lit.local.cfg13
-rw-r--r--test/cfi/cross-dso/shadow_is_read_only.cpp88
-rw-r--r--test/cfi/cross-dso/simple-fail.cpp101
-rw-r--r--test/cfi/cross-dso/simple-pass.cpp65
-rw-r--r--test/cfi/cross-dso/stats.cpp65
-rw-r--r--test/cfi/cross-dso/target_out_of_bounds.cpp64
-rw-r--r--test/cfi/cross-dso/util/cfi_stubs.h30
-rw-r--r--test/cfi/icall/bad-signature.c27
-rw-r--r--test/cfi/icall/external-call.c28
-rw-r--r--test/cfi/icall/lit.local.cfg3
-rw-r--r--test/cfi/icall/weak.c15
-rw-r--r--test/cfi/icall/wrong-signature-mixed-lto.c41
-rw-r--r--test/cfi/lit.cfg46
-rw-r--r--test/cfi/lit.site.cfg.in13
-rw-r--r--test/cfi/mfcall.cpp96
-rw-r--r--test/cfi/multiple-inheritance.cpp74
-rw-r--r--test/cfi/nvcall.cpp59
-rw-r--r--test/cfi/overwrite.cpp64
-rw-r--r--test/cfi/sibling.cpp54
-rw-r--r--test/cfi/simple-fail.cpp101
-rw-r--r--test/cfi/simple-pass.cpp126
-rw-r--r--test/cfi/stats.cpp55
-rw-r--r--test/cfi/target_uninstrumented.cpp47
-rw-r--r--test/cfi/two-vcalls.cpp60
-rw-r--r--test/cfi/utils.h67
-rw-r--r--test/cfi/vdtor.cpp56
-rw-r--r--test/cfi/vtable-may-alias.cpp25
-rw-r--r--test/dfsan/CMakeLists.txt31
-rw-r--r--test/dfsan/Inputs/flags_abilist.txt10
-rw-r--r--test/dfsan/basic.c28
-rw-r--r--test/dfsan/custom.cc963
-rw-r--r--test/dfsan/dump_labels.c69
-rw-r--r--test/dfsan/flags.c24
-rw-r--r--test/dfsan/fncall.c26
-rw-r--r--test/dfsan/label_count.c75
-rw-r--r--test/dfsan/lit.cfg26
-rw-r--r--test/dfsan/lit.site.cfg.in12
-rw-r--r--test/dfsan/propagate.c47
-rw-r--r--test/dfsan/trace-cmp.c50
-rw-r--r--test/dfsan/vararg.c24
-rw-r--r--test/dfsan/write_callback.c111
-rw-r--r--test/esan/CMakeLists.txt32
-rw-r--r--test/esan/TestCases/large-stack-linux.c76
-rw-r--r--test/esan/TestCases/libc-intercept.c20
-rw-r--r--test/esan/TestCases/mmap-shadow-conflict.c44
-rw-r--r--test/esan/TestCases/struct-simple.cpp204
-rw-r--r--test/esan/TestCases/verbose-simple.c18
-rw-r--r--test/esan/TestCases/workingset-early-fault.c35
-rw-r--r--test/esan/TestCases/workingset-memset.cpp22
-rw-r--r--test/esan/TestCases/workingset-midreport.cpp76
-rw-r--r--test/esan/TestCases/workingset-samples.cpp48
-rw-r--r--test/esan/TestCases/workingset-signal-posix.cpp77
-rw-r--r--test/esan/TestCases/workingset-simple.cpp35
-rw-r--r--test/esan/Unit/circular_buffer.cpp61
-rw-r--r--test/esan/Unit/hashtable.cpp179
-rw-r--r--test/esan/lit.cfg43
-rw-r--r--test/esan/lit.site.cfg.in14
-rw-r--r--test/fuzzer/AFLDriverTest.cpp28
-rw-r--r--test/fuzzer/AbsNegAndConstant64Test.cpp25
-rw-r--r--test/fuzzer/AbsNegAndConstantTest.cpp25
-rw-r--r--test/fuzzer/AccumulateAllocationsTest.cpp17
-rw-r--r--test/fuzzer/AcquireCrashStateTest.cpp18
-rw-r--r--test/fuzzer/AlignmentAssumptionTest.cpp27
-rw-r--r--test/fuzzer/BadStrcmpTest.cpp19
-rw-r--r--test/fuzzer/Bingo.h1
-rw-r--r--test/fuzzer/BogusInitializeTest.cpp15
-rw-r--r--test/fuzzer/BufferOverflowOnInput.cpp24
-rw-r--r--test/fuzzer/CMakeLists.txt109
-rw-r--r--test/fuzzer/CallerCalleeTest.cpp59
-rw-r--r--test/fuzzer/CleanseTest.cpp16
-rw-r--r--test/fuzzer/CounterTest.cpp18
-rw-r--r--test/fuzzer/CustomCrossOverAndMutateTest.cpp34
-rw-r--r--test/fuzzer/CustomCrossOverTest.cpp59
-rw-r--r--test/fuzzer/CustomMutatorTest.cpp39
-rw-r--r--test/fuzzer/CxxStringEqTest.cpp25
-rw-r--r--test/fuzzer/DSO1.cpp14
-rw-r--r--test/fuzzer/DSO2.cpp14
-rw-r--r--test/fuzzer/DSOTestExtra.cpp11
-rw-r--r--test/fuzzer/DSOTestMain.cpp31
-rw-r--r--test/fuzzer/DeepRecursionTest.cpp25
-rw-r--r--test/fuzzer/DivTest.cpp20
-rw-r--r--test/fuzzer/EmptyTest.cpp11
-rw-r--r--test/fuzzer/EquivalenceATest.cpp17
-rw-r--r--test/fuzzer/EquivalenceBTest.cpp27
-rw-r--r--test/fuzzer/ExplodeDFSanLabelsTest.cpp23
-rw-r--r--test/fuzzer/FlagsTest.cpp32
-rw-r--r--test/fuzzer/FourIndependentBranchesTest.cpp22
-rw-r--r--test/fuzzer/FullCoverageSetTest.cpp24
-rw-r--r--test/fuzzer/GcSectionsTest.cpp14
-rw-r--r--test/fuzzer/ImplicitIntegerSignChangeTest.cpp27
-rw-r--r--test/fuzzer/ImplicitSignedIntegerTruncationOrSignChangeTest.cpp27
-rw-r--r--test/fuzzer/ImplicitSignedIntegerTruncationTest.cpp27
-rw-r--r--test/fuzzer/ImplicitUnsignedIntegerTruncationTest.cpp27
-rw-r--r--test/fuzzer/InitializeTest.cpp28
-rw-r--r--test/fuzzer/LargeTest.cpp37
-rw-r--r--test/fuzzer/LeakTest.cpp17
-rw-r--r--test/fuzzer/LeakTimeoutTest.cpp17
-rw-r--r--test/fuzzer/LoadTest.cpp22
-rw-r--r--test/fuzzer/Memcmp64BytesTest.cpp20
-rw-r--r--test/fuzzer/MemcmpTest.cpp31
-rw-r--r--test/fuzzer/MultipleConstraintsOnSmallInputTest.cpp4129
-rw-r--r--test/fuzzer/NotinstrumentedTest.cpp11
-rw-r--r--test/fuzzer/NthRunCrashTest.cpp19
-rw-r--r--test/fuzzer/NullDerefOnEmptyTest.cpp19
-rw-r--r--test/fuzzer/NullDerefTest.cpp26
-rw-r--r--test/fuzzer/OneHugeAllocTest.cpp28
-rw-r--r--test/fuzzer/OnlySomeBytesTest.cpp40
-rw-r--r--test/fuzzer/OutOfMemorySingleLargeMallocTest.cpp27
-rw-r--r--test/fuzzer/OutOfMemoryTest.cpp31
-rw-r--r--test/fuzzer/OverwriteInputTest.cpp13
-rw-r--r--test/fuzzer/PrintFuncTest.cpp39
-rw-r--r--test/fuzzer/ReadBinaryTest.cpp18
-rw-r--r--test/fuzzer/RepeatedBytesTest.cpp31
-rw-r--r--test/fuzzer/RepeatedMemcmp.cpp24
-rw-r--r--test/fuzzer/ShrinkControlFlowSimpleTest.cpp19
-rw-r--r--test/fuzzer/ShrinkControlFlowTest.cpp31
-rw-r--r--test/fuzzer/ShrinkValueProfileTest.cpp22
-rw-r--r--test/fuzzer/SignedIntOverflowTest.cpp28
-rw-r--r--test/fuzzer/SimpleCmpTest.cpp47
-rw-r--r--test/fuzzer/SimpleDictionaryTest.cpp30
-rw-r--r--test/fuzzer/SimpleHashTest.cpp40
-rw-r--r--test/fuzzer/SimpleTest.cpp28
-rw-r--r--test/fuzzer/SimpleTestStdio.cpp26
-rw-r--r--test/fuzzer/SimpleThreadedTest.cpp26
-rw-r--r--test/fuzzer/SingleByteInputTest.cpp17
-rw-r--r--test/fuzzer/SingleMemcmpTest.cpp17
-rw-r--r--test/fuzzer/SingleStrcmpTest.cpp21
-rw-r--r--test/fuzzer/SingleStrncmpTest.cpp18
-rw-r--r--test/fuzzer/SleepOneSecondTest.cpp13
-rw-r--r--test/fuzzer/SpamyTest.cpp21
-rw-r--r--test/fuzzer/StrcmpTest.cpp32
-rw-r--r--test/fuzzer/StrncmpOOBTest.cpp21
-rw-r--r--test/fuzzer/StrncmpTest.cpp28
-rw-r--r--test/fuzzer/StrstrTest.cpp28
-rw-r--r--test/fuzzer/SwapCmpTest.cpp35
-rw-r--r--test/fuzzer/Switch2Test.cpp35
-rw-r--r--test/fuzzer/SwitchTest.cpp58
-rw-r--r--test/fuzzer/SymbolizeDeadlock.cpp34
-rw-r--r--test/fuzzer/TableLookupTest.cpp44
-rw-r--r--test/fuzzer/ThreadedLeakTest.cpp18
-rw-r--r--test/fuzzer/ThreadedTest.cpp26
-rw-r--r--test/fuzzer/ThreeBytes.cpp14
-rw-r--r--test/fuzzer/ThreeFunctionsTest.cpp36
-rw-r--r--test/fuzzer/TimeoutEmptyTest.cpp14
-rw-r--r--test/fuzzer/TimeoutTest.cpp26
-rw-r--r--test/fuzzer/TraceMallocTest.cpp27
-rw-r--r--test/fuzzer/TraceMallocThreadedTest.cpp23
-rw-r--r--test/fuzzer/TwoDifferentBugsTest.cpp22
-rw-r--r--test/fuzzer/UninitializedStrlen.cpp14
-rw-r--r--test/fuzzer/UseAfterDtor.cpp27
-rw-r--r--test/fuzzer/acquire-crash-state.test3
-rw-r--r--test/fuzzer/afl-driver-extra-stats.test33
-rw-r--r--test/fuzzer/afl-driver-stderr.test15
-rw-r--r--test/fuzzer/afl-driver.test29
-rw-r--r--test/fuzzer/bad-strcmp.test2
-rw-r--r--test/fuzzer/bogus-initialize.test4
-rw-r--r--test/fuzzer/buffer-overflow-on-input.test5
-rw-r--r--test/fuzzer/caller-callee.test4
-rw-r--r--test/fuzzer/cleanse.test4
-rw-r--r--test/fuzzer/counters.test8
-rw-r--r--test/fuzzer/coverage.test19
-rw-r--r--test/fuzzer/cxxstring.test6
-rw-r--r--test/fuzzer/dataflow.test84
-rw-r--r--test/fuzzer/dead-stripping.test23
-rw-r--r--test/fuzzer/deep-recursion.test5
-rw-r--r--test/fuzzer/dict1.txt4
-rw-r--r--test/fuzzer/disable-leaks.test6
-rw-r--r--test/fuzzer/dso.test9
-rw-r--r--test/fuzzer/dump_coverage.test22
-rw-r--r--test/fuzzer/equivalence-signals.test14
-rw-r--r--test/fuzzer/equivalence.test11
-rw-r--r--test/fuzzer/exit-report.test6
-rw-r--r--test/fuzzer/exit_on_src_pos.test11
-rw-r--r--test/fuzzer/extra-counters.test7
-rw-r--r--test/fuzzer/full-coverage-set.test3
-rw-r--r--test/fuzzer/fuzzer-alignment-assumption.test7
-rw-r--r--test/fuzzer/fuzzer-customcrossover.test12
-rw-r--r--test/fuzzer/fuzzer-customcrossoverandmutate.test2
-rw-r--r--test/fuzzer/fuzzer-custommutator.test5
-rw-r--r--test/fuzzer/fuzzer-dict.test8
-rw-r--r--test/fuzzer/fuzzer-dirs.test21
-rw-r--r--test/fuzzer/fuzzer-fdmask.test32
-rw-r--r--test/fuzzer/fuzzer-finalstats.test12
-rw-r--r--test/fuzzer/fuzzer-flags.test19
-rw-r--r--test/fuzzer/fuzzer-implicit-integer-sign-change.test5
-rw-r--r--test/fuzzer/fuzzer-implicit-signed-integer-truncation-or-sign-change.test5
-rw-r--r--test/fuzzer/fuzzer-implicit-signed-integer-truncation.test5
-rw-r--r--test/fuzzer/fuzzer-implicit-unsigned-integer-truncation.test5
-rw-r--r--test/fuzzer/fuzzer-leak.test42
-rw-r--r--test/fuzzer/fuzzer-oom-with-profile.test7
-rw-r--r--test/fuzzer/fuzzer-oom.test27
-rw-r--r--test/fuzzer/fuzzer-printcovpcs.test11
-rw-r--r--test/fuzzer/fuzzer-runs.test9
-rw-r--r--test/fuzzer/fuzzer-seed.test4
-rw-r--r--test/fuzzer/fuzzer-segv.test8
-rw-r--r--test/fuzzer/fuzzer-singleinputs.test19
-rw-r--r--test/fuzzer/fuzzer-threaded.test8
-rw-r--r--test/fuzzer/fuzzer-timeout.test21
-rw-r--r--test/fuzzer/fuzzer-ubsan.test5
-rw-r--r--test/fuzzer/gc-sections.test20
-rw-r--r--test/fuzzer/hi.txt1
-rw-r--r--test/fuzzer/initialize.test3
-rw-r--r--test/fuzzer/lit.cfg126
-rw-r--r--test/fuzzer/lit.site.cfg.in24
-rw-r--r--test/fuzzer/max-number-of-runs.test10
-rw-r--r--test/fuzzer/memcmp.test4
-rw-r--r--test/fuzzer/memcmp64.test4
-rw-r--r--test/fuzzer/merge-control-file.test60
-rw-r--r--test/fuzzer/merge-posix.test25
-rw-r--r--test/fuzzer/merge-sigusr.test28
-rw-r--r--test/fuzzer/merge-summary.test17
-rw-r--r--test/fuzzer/merge.test71
-rw-r--r--test/fuzzer/minimize_crash.test18
-rw-r--r--test/fuzzer/minimize_two_crashes.test20
-rw-r--r--test/fuzzer/msan.test24
-rw-r--r--test/fuzzer/not-instrumented.test4
-rw-r--r--test/fuzzer/null-deref-on-empty.test5
-rw-r--r--test/fuzzer/null-deref.test11
-rw-r--r--test/fuzzer/only-some-bytes.test38
-rw-r--r--test/fuzzer/overwrite-input.test3
-rw-r--r--test/fuzzer/print-func.test11
-rw-r--r--test/fuzzer/read-binary.test7
-rw-r--r--test/fuzzer/recommended-dictionary.test7
-rw-r--r--test/fuzzer/reduce_inputs.test16
-rw-r--r--test/fuzzer/repeated-bytes.test3
-rw-r--r--test/fuzzer/shrink.test10
-rw-r--r--test/fuzzer/sigusr.test16
-rw-r--r--test/fuzzer/simple-cmp.test7
-rw-r--r--test/fuzzer/simple.test7
-rw-r--r--test/fuzzer/standalone.test8
-rw-r--r--test/fuzzer/strcmp.test5
-rw-r--r--test/fuzzer/strncmp-oob.test6
-rw-r--r--test/fuzzer/strncmp.test5
-rw-r--r--test/fuzzer/strstr.test5
-rw-r--r--test/fuzzer/swap-cmp.test3
-rw-r--r--test/fuzzer/symbolize-deadlock.test2
-rw-r--r--test/fuzzer/target-function.test30
-rw-r--r--test/fuzzer/three-bytes.test8
-rw-r--r--test/fuzzer/trace-malloc-2.test10
-rw-r--r--test/fuzzer/trace-malloc-threaded.test38
-rw-r--r--test/fuzzer/trace-malloc-unbalanced.test30
-rw-r--r--test/fuzzer/trace-malloc.test7
-rw-r--r--test/fuzzer/trace-pc.test3
-rw-r--r--test/fuzzer/ulimit.test5
-rw-r--r--test/fuzzer/unit/lit.site.cfg.in9
-rw-r--r--test/fuzzer/value-profile-cmp.test5
-rw-r--r--test/fuzzer/value-profile-cmp2.test4
-rw-r--r--test/fuzzer/value-profile-cmp3.test4
-rw-r--r--test/fuzzer/value-profile-cmp4.test5
-rw-r--r--test/fuzzer/value-profile-div.test6
-rw-r--r--test/fuzzer/value-profile-load.test5
-rw-r--r--test/fuzzer/value-profile-mem.test5
-rw-r--r--test/fuzzer/value-profile-set.test5
-rw-r--r--test/fuzzer/value-profile-strcmp.test5
-rw-r--r--test/fuzzer/value-profile-strncmp.test4
-rw-r--r--test/fuzzer/value-profile-switch.test6
-rw-r--r--test/fuzzer/windows-opt-ref.test9
-rw-r--r--test/hwasan/CMakeLists.txt32
-rw-r--r--test/hwasan/TestCases/Linux/aligned_alloc-alignment.cc25
-rw-r--r--test/hwasan/TestCases/Linux/lit.local.cfg9
-rw-r--r--test/hwasan/TestCases/Linux/pvalloc-overflow.cc46
-rw-r--r--test/hwasan/TestCases/Posix/lit.local.cfg9
-rw-r--r--test/hwasan/TestCases/Posix/posix_memalign-alignment.cc22
-rw-r--r--test/hwasan/TestCases/Posix/system-allocator-fallback.cc54
-rw-r--r--test/hwasan/TestCases/abort-message-android.cc28
-rw-r--r--test/hwasan/TestCases/allocator_returns_null.cc118
-rw-r--r--test/hwasan/TestCases/cfi.cc18
-rw-r--r--test/hwasan/TestCases/check-interface.cc22
-rw-r--r--test/hwasan/TestCases/deep-recursion.c73
-rw-r--r--test/hwasan/TestCases/double-free.c23
-rw-r--r--test/hwasan/TestCases/halt-on-error.cc42
-rw-r--r--test/hwasan/TestCases/heap-buffer-overflow.c60
-rw-r--r--test/hwasan/TestCases/hwasan-print-shadow.cc29
-rw-r--r--test/hwasan/TestCases/longjmp.c26
-rw-r--r--test/hwasan/TestCases/malloc-test.c16
-rw-r--r--test/hwasan/TestCases/malloc_fill.cc22
-rw-r--r--test/hwasan/TestCases/many-threads-uaf.c45
-rw-r--r--test/hwasan/TestCases/mem-intrinsics-zero-size.c10
-rw-r--r--test/hwasan/TestCases/mem-intrinsics.c37
-rw-r--r--test/hwasan/TestCases/new-test.cc18
-rw-r--r--test/hwasan/TestCases/print-memory-usage-android.c21
-rw-r--r--test/hwasan/TestCases/print-memory-usage.c72
-rw-r--r--test/hwasan/TestCases/pthread_exit.c5
-rw-r--r--test/hwasan/TestCases/random-align-right.c35
-rw-r--r--test/hwasan/TestCases/realloc-after-free.c28
-rw-r--r--test/hwasan/TestCases/realloc-test.cc37
-rw-r--r--test/hwasan/TestCases/rich-stack.c66
-rw-r--r--test/hwasan/TestCases/sanitizer_malloc.cc29
-rw-r--r--test/hwasan/TestCases/sizes.cpp80
-rw-r--r--test/hwasan/TestCases/stack-history-length.c36
-rw-r--r--test/hwasan/TestCases/stack-oob.c25
-rw-r--r--test/hwasan/TestCases/stack-uar.c41
-rw-r--r--test/hwasan/TestCases/tail-magic.c28
-rw-r--r--test/hwasan/TestCases/thread-uaf.c58
-rw-r--r--test/hwasan/TestCases/uaf_with_rb_distance.c27
-rw-r--r--test/hwasan/TestCases/use-after-free.c40
-rw-r--r--test/hwasan/lit.cfg36
-rw-r--r--test/hwasan/lit.site.cfg.in13
-rw-r--r--test/interception/CMakeLists.txt17
-rw-r--r--test/interception/Unit/lit.site.cfg.in14
-rw-r--r--test/lit.common.cfg476
-rw-r--r--test/lit.common.configured.in63
-rw-r--r--test/lsan/CMakeLists.txt39
-rw-r--r--test/lsan/TestCases/Darwin/dispatch.mm59
-rw-r--r--test/lsan/TestCases/Darwin/lit.local.cfg9
-rw-r--r--test/lsan/TestCases/Linux/cleanup_in_tsd_destructor.c46
-rw-r--r--test/lsan/TestCases/Linux/disabler_in_tsd_destructor.c39
-rw-r--r--test/lsan/TestCases/Linux/fork.cc24
-rw-r--r--test/lsan/TestCases/Linux/fork_and_leak.cc23
-rw-r--r--test/lsan/TestCases/Linux/fork_threaded.cc43
-rw-r--r--test/lsan/TestCases/Linux/guard-page.c61
-rw-r--r--test/lsan/TestCases/Linux/lit.local.cfg9
-rw-r--r--test/lsan/TestCases/Linux/log-path_test.cc26
-rw-r--r--test/lsan/TestCases/Linux/use_tls_dynamic.cc57
-rw-r--r--test/lsan/TestCases/Linux/use_tls_pthread_specific_dynamic.cc38
-rw-r--r--test/lsan/TestCases/Linux/use_tls_pthread_specific_static.cc32
-rw-r--r--test/lsan/TestCases/Linux/use_tls_static.cc22
-rw-r--r--test/lsan/TestCases/Posix/lit.local.cfg9
-rw-r--r--test/lsan/TestCases/default_options.cc11
-rw-r--r--test/lsan/TestCases/disabler.c24
-rw-r--r--test/lsan/TestCases/disabler.cc25
-rw-r--r--test/lsan/TestCases/do_leak_check_override.cc36
-rw-r--r--test/lsan/TestCases/high_allocator_contention.cc49
-rw-r--r--test/lsan/TestCases/ignore_object.c23
-rw-r--r--test/lsan/TestCases/ignore_object_errors.cc20
-rw-r--r--test/lsan/TestCases/large_allocation_leak.cc23
-rw-r--r--test/lsan/TestCases/leak_check_at_exit.cc21
-rw-r--r--test/lsan/TestCases/leak_check_before_thread_started.cc40
-rw-r--r--test/lsan/TestCases/link_turned_off.cc26
-rw-r--r--test/lsan/TestCases/many_tls_keys.cc97
-rw-r--r--test/lsan/TestCases/new_array_with_dtor_0.cc19
-rw-r--r--test/lsan/TestCases/pointer_to_self.cc19
-rw-r--r--test/lsan/TestCases/print_suppressions.cc33
-rw-r--r--test/lsan/TestCases/recoverable_leak_check.cc34
-rw-r--r--test/lsan/TestCases/register_root_region.cc32
-rw-r--r--test/lsan/TestCases/sanity_check_pure_c.c10
-rw-r--r--test/lsan/TestCases/stale_stack_leak.cc47
-rw-r--r--test/lsan/TestCases/strace_test.cc15
-rw-r--r--test/lsan/TestCases/suppressions_default.cc28
-rw-r--r--test/lsan/TestCases/suppressions_file.cc32
-rw-r--r--test/lsan/TestCases/swapcontext.cc48
-rw-r--r--test/lsan/TestCases/use_after_return.cc24
-rw-r--r--test/lsan/TestCases/use_globals_initialized.cc22
-rw-r--r--test/lsan/TestCases/use_globals_uninitialized.cc22
-rw-r--r--test/lsan/TestCases/use_poisoned_asan.cc26
-rw-r--r--test/lsan/TestCases/use_registers.cc68
-rw-r--r--test/lsan/TestCases/use_stacks.cc21
-rw-r--r--test/lsan/TestCases/use_stacks_threaded.cc38
-rw-r--r--test/lsan/TestCases/use_unaligned.cc24
-rw-r--r--test/lsan/lit.common.cfg80
-rw-r--r--test/lsan/lit.site.cfg.in13
-rw-r--r--test/msan/CMakeLists.txt58
-rw-r--r--test/msan/Linux/cmsghdr.cc101
-rw-r--r--test/msan/Linux/eventfd.cc18
-rw-r--r--test/msan/Linux/fopencookie.cc65
-rw-r--r--test/msan/Linux/forkpty.cc25
-rw-r--r--test/msan/Linux/getresid.cc25
-rw-r--r--test/msan/Linux/glob.cc27
-rw-r--r--test/msan/Linux/glob_altdirfunc.cc78
-rw-r--r--test/msan/Linux/glob_nomatch.cc21
-rw-r--r--test/msan/Linux/glob_test_root/aa0
-rw-r--r--test/msan/Linux/glob_test_root/ab0
-rw-r--r--test/msan/Linux/glob_test_root/ba0
-rw-r--r--test/msan/Linux/ioctl_sound.cc29
-rw-r--r--test/msan/Linux/lit.local.cfg9
-rw-r--r--test/msan/Linux/mallinfo.cc13
-rw-r--r--test/msan/Linux/mincore.cc36
-rw-r--r--test/msan/Linux/name_to_handle_at.cc28
-rw-r--r--test/msan/Linux/obstack.cc37
-rw-r--r--test/msan/Linux/poll.cc42
-rw-r--r--test/msan/Linux/process_vm_readv.cc75
-rw-r--r--test/msan/Linux/reexec_unlimited_stack.cc23
-rw-r--r--test/msan/Linux/sendmsg.cc153
-rw-r--r--test/msan/Linux/strerror_r.cc18
-rw-r--r--test/msan/Linux/sunrpc.cc42
-rw-r--r--test/msan/Linux/sunrpc_bytes.cc40
-rw-r--r--test/msan/Linux/sunrpc_string.cc37
-rw-r--r--test/msan/Linux/syscalls.cc127
-rw-r--r--test/msan/Linux/syscalls_sigaction.cc48
-rw-r--r--test/msan/Linux/tcgetattr.cc21
-rw-r--r--test/msan/Linux/xattr.cc145
-rw-r--r--test/msan/Linux/xattr_test_root/a0
-rw-r--r--test/msan/Unit/lit.site.cfg.in13
-rw-r--r--test/msan/__strxfrm_l.cc19
-rw-r--r--test/msan/alloca.cc25
-rw-r--r--test/msan/allocator_mapping.cc36
-rw-r--r--test/msan/backtrace.cc26
-rw-r--r--test/msan/c-strdup.c17
-rw-r--r--test/msan/chained_origin.cc67
-rw-r--r--test/msan/chained_origin_empty_stack.cc34
-rw-r--r--test/msan/chained_origin_limits.cc186
-rw-r--r--test/msan/chained_origin_memcpy.cc62
-rw-r--r--test/msan/chained_origin_with_signals.cc39
-rw-r--r--test/msan/check-handler.cc16
-rw-r--r--test/msan/check_mem_is_initialized.cc33
-rw-r--r--test/msan/coverage-levels.cc28
-rw-r--r--test/msan/ctermid.cc13
-rw-r--r--test/msan/cxa_atexit.cc28
-rw-r--r--test/msan/death-callback.cc39
-rw-r--r--test/msan/default_blacklist.cc3
-rw-r--r--test/msan/dlerror.cc14
-rw-r--r--test/msan/dlopen_executable.cc17
-rw-r--r--test/msan/dso-origin.cc48
-rw-r--r--test/msan/dtls_test.c71
-rw-r--r--test/msan/dtor-base-access.cc49
-rw-r--r--test/msan/dtor-bit-fields.cc70
-rw-r--r--test/msan/dtor-derived-class.cc39
-rw-r--r--test/msan/dtor-member.cc48
-rw-r--r--test/msan/dtor-multiple-inheritance-nontrivial-class-members.cc152
-rw-r--r--test/msan/dtor-multiple-inheritance.cc98
-rw-r--r--test/msan/dtor-trivial-class-members.cc55
-rw-r--r--test/msan/dtor-trivial.cpp41
-rw-r--r--test/msan/dtor-vtable-multiple-inheritance.cc72
-rw-r--r--test/msan/dtor-vtable.cc68
-rw-r--r--test/msan/errno.cc17
-rw-r--r--test/msan/fgets_fputs.cc47
-rw-r--r--test/msan/fork.cc127
-rw-r--r--test/msan/fread_fwrite.cc34
-rw-r--r--test/msan/fstat.cc15
-rw-r--r--test/msan/ftime.cc17
-rw-r--r--test/msan/getaddrinfo-positive.cc23
-rw-r--r--test/msan/getaddrinfo.cc24
-rw-r--r--test/msan/getc_unlocked.c32
-rw-r--r--test/msan/getline.cc40
-rw-r--r--test/msan/getloadavg.cc16
-rw-r--r--test/msan/getutent.cc21
-rw-r--r--test/msan/heap-origin.cc31
-rw-r--r--test/msan/icmp_slt_allones.cc20
-rw-r--r--test/msan/iconv.cc53
-rw-r--r--test/msan/if_indextoname.cc23
-rw-r--r--test/msan/ifaddrs.cc54
-rw-r--r--test/msan/initgroups.cc12
-rw-r--r--test/msan/inline.cc20
-rw-r--r--test/msan/insertvalue_origin.cc35
-rw-r--r--test/msan/ioctl.cc20
-rw-r--r--test/msan/ioctl_custom.cc36
-rw-r--r--test/msan/lit.cfg47
-rw-r--r--test/msan/lit.site.cfg.in14
-rw-r--r--test/msan/memcmp_test.cc18
-rw-r--r--test/msan/mktime.cc26
-rw-r--r--test/msan/mmap.cc83
-rw-r--r--test/msan/mmap_below_shadow.cc42
-rw-r--r--test/msan/msan_check_mem_is_initialized.cc28
-rw-r--r--test/msan/msan_copy_shadow.cc35
-rw-r--r--test/msan/msan_dump_shadow.cc22
-rw-r--r--test/msan/msan_print_shadow.cc122
-rw-r--r--test/msan/msan_print_shadow2.cc49
-rw-r--r--test/msan/msan_print_shadow3.cc16
-rw-r--r--test/msan/mul_by_const.cc27
-rw-r--r--test/msan/no_sanitize_memory.cc34
-rw-r--r--test/msan/no_sanitize_memory_prop.cc24
-rw-r--r--test/msan/origin-store-long.cc21
-rw-r--r--test/msan/param_tls_limit.cc89
-rw-r--r--test/msan/poison_in_free.cc16
-rw-r--r--test/msan/pr32842.c22
-rw-r--r--test/msan/print_stats.cc45
-rw-r--r--test/msan/pthread_getattr_np_deadlock.cc32
-rw-r--r--test/msan/pthread_getname_np.cc52
-rw-r--r--test/msan/pthread_setcancelstate.cc19
-rw-r--r--test/msan/rand_r.cc18
-rw-r--r--test/msan/readdir64.cc27
-rw-r--r--test/msan/realloc-large-origin.cc31
-rw-r--r--test/msan/realloc-origin.cc21
-rw-r--r--test/msan/recover-dso.cc39
-rw-r--r--test/msan/recover.cc41
-rw-r--r--test/msan/report-demangling.cc19
-rw-r--r--test/msan/scandir.cc56
-rw-r--r--test/msan/scandir_null.cc34
-rw-r--r--test/msan/scandir_test_root/aaa0
-rw-r--r--test/msan/scandir_test_root/aab0
-rw-r--r--test/msan/scandir_test_root/bbb0
-rw-r--r--test/msan/scoped-interceptors.cc52
-rw-r--r--test/msan/select.cc22
-rw-r--r--test/msan/select_float_origin.cc24
-rw-r--r--test/msan/select_origin.cc22
-rw-r--r--test/msan/sem_getvalue.cc22
-rw-r--r--test/msan/setlocale.cc13
-rw-r--r--test/msan/sigaction.cc47
-rw-r--r--test/msan/signal_stress_test.cc74
-rw-r--r--test/msan/sigwait.cc35
-rw-r--r--test/msan/sigwaitinfo.cc31
-rw-r--r--test/msan/stack-origin.cc31
-rw-r--r--test/msan/stack-origin2.cc41
-rw-r--r--test/msan/strerror_r-non-gnu.c18
-rw-r--r--test/msan/strlen_of_shadow.cc38
-rw-r--r--test/msan/strndup.cc28
-rw-r--r--test/msan/strxfrm.cc22
-rw-r--r--test/msan/sync_lock_set_and_test.cc7
-rw-r--r--test/msan/test.h15
-rw-r--r--test/msan/textdomain.cc14
-rw-r--r--test/msan/times.cc20
-rw-r--r--test/msan/tls_reuse.cc26
-rw-r--r--test/msan/tsearch.cc39
-rw-r--r--test/msan/tzset.cc17
-rw-r--r--test/msan/unaligned_read_origin.cc16
-rw-r--r--test/msan/unpoison_string.cc16
-rw-r--r--test/msan/use-after-dtor.cc50
-rw-r--r--test/msan/use-after-free.cc34
-rw-r--r--test/msan/vararg.cc60
-rw-r--r--test/msan/vector_cvt.cc24
-rw-r--r--test/msan/vector_div.cc17
-rw-r--r--test/msan/vector_select.cc21
-rw-r--r--test/msan/wcsncpy.cc40
-rw-r--r--test/msan/wcsxfrm.cc30
-rw-r--r--test/profile/CMakeLists.txt29
-rw-r--r--test/profile/Inputs/comdat_rename.h13
-rw-r--r--test/profile/Inputs/comdat_rename_1.cc33
-rw-r--r--test/profile/Inputs/comdat_rename_2.cc18
-rw-r--r--test/profile/Inputs/extern_template.cpp14
-rw-r--r--test/profile/Inputs/extern_template.h17
-rw-r--r--test/profile/Inputs/extern_template1.cpp9
-rw-r--r--test/profile/Inputs/extern_template2.cpp9
-rw-r--r--test/profile/Inputs/gcc-flag-compatibility.c8
-rw-r--r--test/profile/Inputs/instrprof-alloc.c41
-rw-r--r--test/profile/Inputs/instrprof-comdat-1.cpp17
-rw-r--r--test/profile/Inputs/instrprof-comdat-2.cpp12
-rw-r--r--test/profile/Inputs/instrprof-comdat.h23
-rw-r--r--test/profile/Inputs/instrprof-dlopen-dlclose-main.c86
-rw-r--r--test/profile/Inputs/instrprof-dlopen-dlclose-main.c.gcov91
-rw-r--r--test/profile/Inputs/instrprof-dlopen-dlclose-main_three-libs.c.gcov91
-rw-r--r--test/profile/Inputs/instrprof-dlopen-func.c1
-rw-r--r--test/profile/Inputs/instrprof-dlopen-func.c.gcov6
-rw-r--r--test/profile/Inputs/instrprof-dlopen-func2.c1
-rw-r--r--test/profile/Inputs/instrprof-dlopen-func2.c.gcov6
-rw-r--r--test/profile/Inputs/instrprof-dlopen-func3.c1
-rw-r--r--test/profile/Inputs/instrprof-dlopen-func3.c.gcov6
-rw-r--r--test/profile/Inputs/instrprof-dlopen-main.c47
-rw-r--r--test/profile/Inputs/instrprof-dynamic-a.cpp7
-rw-r--r--test/profile/Inputs/instrprof-dynamic-b.cpp7
-rw-r--r--test/profile/Inputs/instrprof-dynamic-header.h7
-rw-r--r--test/profile/Inputs/instrprof-dynamic-main.cpp9
-rw-r--r--test/profile/Inputs/instrprof-file_ex.c59
-rw-r--r--test/profile/Inputs/instrprof-gcov-__gcov_flush-multiple.c16
-rw-r--r--test/profile/Inputs/instrprof-gcov-__gcov_flush-multiple.c.gcov21
-rw-r--r--test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c13
-rw-r--r--test/profile/Inputs/instrprof-gcov-__gcov_flush-terminate.c.gcov18
-rw-r--r--test/profile/Inputs/instrprof-gcov-exceptions.cpp11
-rw-r--r--test/profile/Inputs/instrprof-gcov-exceptions.cpp.gcov16
-rw-r--r--test/profile/Inputs/instrprof-gcov-execlp.c15
-rw-r--r--test/profile/Inputs/instrprof-gcov-execlp.c.gcov23
-rw-r--r--test/profile/Inputs/instrprof-gcov-execvp.c17
-rw-r--r--test/profile/Inputs/instrprof-gcov-execvp.c.gcov25
-rw-r--r--test/profile/Inputs/instrprof-gcov-fork.c15
-rw-r--r--test/profile/Inputs/instrprof-gcov-fork.c.gcov23
-rw-r--r--test/profile/Inputs/instrprof-gcov-multiple-bbs-single-line.c20
-rw-r--r--test/profile/Inputs/instrprof-gcov-multiple-bbs-single-line.c.gcov34
-rw-r--r--test/profile/Inputs/instrprof-gcov-one-line-function.c11
-rw-r--r--test/profile/Inputs/instrprof-gcov-one-line-function.c.gcov16
-rw-r--r--test/profile/Inputs/instrprof-gcov-switch1.c18
-rw-r--r--test/profile/Inputs/instrprof-gcov-switch1.c.gcov23
-rw-r--r--test/profile/Inputs/instrprof-gcov-switch2.c18
-rw-r--r--test/profile/Inputs/instrprof-gcov-switch2.c.gcov23
-rw-r--r--test/profile/Inputs/instrprof-icall-promo.h4
-rw-r--r--test/profile/Inputs/instrprof-icall-promo_1.cc7
-rw-r--r--test/profile/Inputs/instrprof-icall-promo_2.cc15
-rw-r--r--test/profile/Inputs/instrprof-merge-match-lib.c39
-rw-r--r--test/profile/Inputs/instrprof-merge-match.c54
-rw-r--r--test/profile/Inputs/instrprof-shared-lib.c9
-rw-r--r--test/profile/Inputs/instrprof-shared-lib.c.gcov14
-rw-r--r--test/profile/Inputs/instrprof-shared-lib_called-twice.c.gcov14
-rw-r--r--test/profile/Inputs/instrprof-shared-lib_in-loop.c.gcov14
-rw-r--r--test/profile/Inputs/instrprof-shared-main-gcov-flush.c36
-rw-r--r--test/profile/Inputs/instrprof-shared-main-gcov-flush_no-writeout.c.gcov41
-rw-r--r--test/profile/Inputs/instrprof-shared-main-gcov-flush_shared-call-after.c.gcov41
-rw-r--r--test/profile/Inputs/instrprof-shared-main-gcov-flush_shared-call-before-after.c.gcov41
-rw-r--r--test/profile/Inputs/instrprof-shared-main-gcov-flush_shared-call-before.c.gcov41
-rw-r--r--test/profile/Inputs/instrprof-shared-main.c13
-rw-r--r--test/profile/Inputs/instrprof-shared-main.c.gcov18
-rw-r--r--test/profile/Inputs/instrprof-value-prof-evict.c141
-rw-r--r--test/profile/Inputs/instrprof-value-prof-real.c1096
-rw-r--r--test/profile/Inputs/instrprof-visibility-helper.cpp3
-rw-r--r--test/profile/Linux/comdat_rename.test6
-rw-r--r--test/profile/Linux/counter_promo_for.c59
-rw-r--r--test/profile/Linux/counter_promo_nest.c51
-rw-r--r--test/profile/Linux/counter_promo_while.c55
-rw-r--r--test/profile/Linux/coverage_ctors.cpp32
-rw-r--r--test/profile/Linux/coverage_dtor.cpp26
-rw-r--r--test/profile/Linux/coverage_shared.test16
-rw-r--r--test/profile/Linux/coverage_test.cpp35
-rw-r--r--test/profile/Linux/extern_template.test29
-rw-r--r--test/profile/Linux/instrprof-alloc.test6
-rw-r--r--test/profile/Linux/instrprof-basic.c31
-rw-r--r--test/profile/Linux/instrprof-comdat.test6
-rw-r--r--test/profile/Linux/instrprof-cs.c35
-rw-r--r--test/profile/Linux/instrprof-dir.c13
-rw-r--r--test/profile/Linux/instrprof-dlopen.test34
-rw-r--r--test/profile/Linux/instrprof-dynamic-one-shared.test23
-rw-r--r--test/profile/Linux/instrprof-dynamic-two-shared.test24
-rw-r--r--test/profile/Linux/instrprof-file_ex.test17
-rw-r--r--test/profile/Linux/instrprof-merge-vp.c113
-rw-r--r--test/profile/Linux/instrprof-value-merge.c79
-rw-r--r--test/profile/Linux/instrprof-value-prof-warn.test8
-rw-r--r--test/profile/Linux/lit.local.cfg40
-rw-r--r--test/profile/Posix/instrprof-gcov-execlp.test10
-rw-r--r--test/profile/Posix/instrprof-gcov-execvp.test10
-rw-r--r--test/profile/Posix/instrprof-gcov-fork.test12
-rw-r--r--test/profile/gcc-flag-compatibility.test18
-rw-r--r--test/profile/infinite_loop.c30
-rw-r--r--test/profile/instrprof-basic.c74
-rw-r--r--test/profile/instrprof-bufferio.c129
-rw-r--r--test/profile/instrprof-darwin-dead-strip.c73
-rw-r--r--test/profile/instrprof-darwin-exports.c27
-rw-r--r--test/profile/instrprof-dlopen-dlclose-gcov.test33
-rw-r--r--test/profile/instrprof-dlopen.test34
-rw-r--r--test/profile/instrprof-dump.c62
-rw-r--r--test/profile/instrprof-dynamic-one-shared.test23
-rw-r--r--test/profile/instrprof-dynamic-two-shared.test24
-rw-r--r--test/profile/instrprof-error.c9
-rw-r--r--test/profile/instrprof-gcov-__gcov_flush-multiple.test10
-rw-r--r--test/profile/instrprof-gcov-__gcov_flush-terminate.test12
-rw-r--r--test/profile/instrprof-gcov-exceptions.test21
-rw-r--r--test/profile/instrprof-gcov-multiple-bbs-single-line.test11
-rw-r--r--test/profile/instrprof-gcov-one-line-function.test9
-rw-r--r--test/profile/instrprof-gcov-switch.test16
-rw-r--r--test/profile/instrprof-gcov-two-objects.test18
-rw-r--r--test/profile/instrprof-get-filename.c39
-rw-r--r--test/profile/instrprof-hostname.c14
-rw-r--r--test/profile/instrprof-icall-promo.test17
-rw-r--r--test/profile/instrprof-merge-match.test5
-rw-r--r--test/profile/instrprof-merge.c96
-rw-r--r--test/profile/instrprof-merging.cpp53
-rw-r--r--test/profile/instrprof-override-filename-then-reset-default.c19
-rw-r--r--test/profile/instrprof-override-filename-with-env.c14
-rw-r--r--test/profile/instrprof-override-filename.c24
-rw-r--r--test/profile/instrprof-path.c39
-rw-r--r--test/profile/instrprof-reset-counters.c19
-rw-r--r--test/profile/instrprof-set-dir-mode.c48
-rw-r--r--test/profile/instrprof-set-filename-shared.test8
-rw-r--r--test/profile/instrprof-set-filename-then-reset-default.c18
-rw-r--r--test/profile/instrprof-set-filename.c57
-rw-r--r--test/profile/instrprof-shared-gcov-flush.test52
-rw-r--r--test/profile/instrprof-shared.test75
-rw-r--r--test/profile/instrprof-value-prof-2.c150
-rw-r--r--test/profile/instrprof-value-prof-evict.test16
-rw-r--r--test/profile/instrprof-value-prof-reset.c47
-rw-r--r--test/profile/instrprof-value-prof-shared.test52
-rw-r--r--test/profile/instrprof-value-prof.c228
-rw-r--r--test/profile/instrprof-value-prof.test21
-rw-r--r--test/profile/instrprof-version-mismatch.c11
-rw-r--r--test/profile/instrprof-visibility-kinds.inc36
-rw-r--r--test/profile/instrprof-visibility.cpp89
-rw-r--r--test/profile/instrprof-without-libc.c70
-rw-r--r--test/profile/instrprof-write-file-atexit-explicitly.c17
-rw-r--r--test/profile/instrprof-write-file-only.c35
-rw-r--r--test/profile/instrprof-write-file.c34
-rw-r--r--test/profile/lit.cfg77
-rw-r--r--test/profile/lit.site.cfg.in12
-rw-r--r--test/profile/runtime_infinite.c36
-rw-r--r--test/safestack/CMakeLists.txt29
-rw-r--r--test/safestack/buffer-copy-vla.c26
-rw-r--r--test/safestack/buffer-copy.c25
-rw-r--r--test/safestack/canary.c38
-rw-r--r--test/safestack/init.c9
-rw-r--r--test/safestack/lit.cfg22
-rw-r--r--test/safestack/lit.site.cfg.in7
-rw-r--r--test/safestack/lto.c12
-rw-r--r--test/safestack/overflow.c29
-rw-r--r--test/safestack/pthread-cleanup.c54
-rw-r--r--test/safestack/pthread-stack-size.c53
-rw-r--r--test/safestack/pthread.c40
-rw-r--r--test/safestack/utils.h8
-rw-r--r--test/sanitizer_common/CMakeLists.txt68
-rw-r--r--test/sanitizer_common/TestCases/Darwin/abort_on_error.cc19
-rw-r--r--test/sanitizer_common/TestCases/Darwin/lit.local.cfg9
-rw-r--r--test/sanitizer_common/TestCases/Darwin/print-stack-trace.cc19
-rw-r--r--test/sanitizer_common/TestCases/FreeBSD/capsicum.cc68
-rw-r--r--test/sanitizer_common/TestCases/FreeBSD/fdevname.cc44
-rw-r--r--test/sanitizer_common/TestCases/FreeBSD/lit.local.cfg9
-rw-r--r--test/sanitizer_common/TestCases/Linux/abort_on_error.cc23
-rw-r--r--test/sanitizer_common/TestCases/Linux/aligned_alloc-alignment.cc43
-rw-r--r--test/sanitizer_common/TestCases/Linux/aligned_alloc.c8
-rw-r--r--test/sanitizer_common/TestCases/Linux/allow_user_segv.cc88
-rw-r--r--test/sanitizer_common/TestCases/Linux/assert.cc25
-rw-r--r--test/sanitizer_common/TestCases/Linux/clock_gettime.c11
-rw-r--r--test/sanitizer_common/TestCases/Linux/closedir.c5
-rw-r--r--test/sanitizer_common/TestCases/Linux/decorate_proc_maps.cc65
-rw-r--r--test/sanitizer_common/TestCases/Linux/deepbind.cc12
-rw-r--r--test/sanitizer_common/TestCases/Linux/getpwnam_r_invalid_user.cc20
-rw-r--r--test/sanitizer_common/TestCases/Linux/iconv_test.c31
-rw-r--r--test/sanitizer_common/TestCases/Linux/ill.cc27
-rw-r--r--test/sanitizer_common/TestCases/Linux/lit.local.cfg9
-rw-r--r--test/sanitizer_common/TestCases/Linux/mallopt.cc10
-rw-r--r--test/sanitizer_common/TestCases/Linux/mlock_test.cc13
-rw-r--r--test/sanitizer_common/TestCases/Linux/mmap64_test.c13
-rw-r--r--test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp37
-rw-r--r--test/sanitizer_common/TestCases/Linux/mprobe.cc42
-rw-r--r--test/sanitizer_common/TestCases/Linux/name_to_handle_at.cc21
-rw-r--r--test/sanitizer_common/TestCases/Linux/new_delete_test.cc80
-rw-r--r--test/sanitizer_common/TestCases/Linux/open_memstream.cc70
-rw-r--r--test/sanitizer_common/TestCases/Linux/pthread_mutex.cc34
-rw-r--r--test/sanitizer_common/TestCases/Linux/ptrace.cc127
-rw-r--r--test/sanitizer_common/TestCases/Linux/pvalloc-overflow.cc47
-rw-r--r--test/sanitizer_common/TestCases/Linux/recv_msg_trunc.cc36
-rw-r--r--test/sanitizer_common/TestCases/Linux/sched_getparam.cc13
-rw-r--r--test/sanitizer_common/TestCases/Linux/sem_init_glibc.cc62
-rw-r--r--test/sanitizer_common/TestCases/Linux/signal_segv_handler.cc55
-rw-r--r--test/sanitizer_common/TestCases/Linux/soft_rss_limit_mb_test.cc72
-rw-r--r--test/sanitizer_common/TestCases/Linux/sysconf_interceptor_bypass_test.cc29
-rw-r--r--test/sanitizer_common/TestCases/Linux/timerfd.cc52
-rw-r--r--test/sanitizer_common/TestCases/Linux/unexpected_format_specifier_test.cc13
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/asysctl.cc44
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/cdb.cc134
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/faccessat.cc6
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/fparseln.cc25
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/funopen2.cc110
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/getgrouplist.cc29
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/getgroupmembership.cc32
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/getvfsstat.cc36
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/gid_from_group.cc16
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/group_from_gid.cc17
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/lit.local.cfg9
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/md2.cc114
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/md4.cc114
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/md5.cc114
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/mi_vector_hash.cc19
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/netent.cc84
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/paccept.cc74
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/protoent.cc89
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/rmd160.cc133
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/sha1.cc171
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/sha2.cc206
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/statvfs1.cc58
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/strmode.cc20
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/strtoi.cc43
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/sysctlgetmibinfo.cc36
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/ttyent.cc70
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/uid_from_user.cc16
-rw-r--r--test/sanitizer_common/TestCases/NetBSD/user_from_uid.cc17
-rw-r--r--test/sanitizer_common/TestCases/Posix/access.cc5
-rw-r--r--test/sanitizer_common/TestCases/Posix/arc4random.cc71
-rw-r--r--test/sanitizer_common/TestCases/Posix/dedup_token_length_test.cc36
-rw-r--r--test/sanitizer_common/TestCases/Posix/devname.cc21
-rw-r--r--test/sanitizer_common/TestCases/Posix/devname_r.cc31
-rw-r--r--test/sanitizer_common/TestCases/Posix/dump_instruction_bytes.cc21
-rw-r--r--test/sanitizer_common/TestCases/Posix/dump_registers.cc20
-rw-r--r--test/sanitizer_common/TestCases/Posix/feof_fileno_ferror.cc41
-rw-r--r--test/sanitizer_common/TestCases/Posix/fgetc_ungetc_getc.cc19
-rw-r--r--test/sanitizer_common/TestCases/Posix/fgetln.cc20
-rw-r--r--test/sanitizer_common/TestCases/Posix/fgets.cc16
-rw-r--r--test/sanitizer_common/TestCases/Posix/fpe.cc29
-rw-r--r--test/sanitizer_common/TestCases/Posix/fputc_putc_putchar.cc13
-rw-r--r--test/sanitizer_common/TestCases/Posix/fputs_puts.cc12
-rw-r--r--test/sanitizer_common/TestCases/Posix/fseek.cc53
-rw-r--r--test/sanitizer_common/TestCases/Posix/fts.cc42
-rw-r--r--test/sanitizer_common/TestCases/Posix/funopen.cc91
-rw-r--r--test/sanitizer_common/TestCases/Posix/getc_unlocked.cc20
-rw-r--r--test/sanitizer_common/TestCases/Posix/getfsent.cc36
-rw-r--r--test/sanitizer_common/TestCases/Posix/getmntinfo.cc35
-rw-r--r--test/sanitizer_common/TestCases/Posix/getpass.cc46
-rw-r--r--test/sanitizer_common/TestCases/Posix/getusershell.cc23
-rw-r--r--test/sanitizer_common/TestCases/Posix/illegal_read_test.cc15
-rw-r--r--test/sanitizer_common/TestCases/Posix/illegal_write_test.cc14
-rw-r--r--test/sanitizer_common/TestCases/Posix/lit.local.cfg9
-rw-r--r--test/sanitizer_common/TestCases/Posix/lstat.cc14
-rw-r--r--test/sanitizer_common/TestCases/Posix/mmap_test.c11
-rw-r--r--test/sanitizer_common/TestCases/Posix/nl_langinfo.cc20
-rw-r--r--test/sanitizer_common/TestCases/Posix/popen.cc23
-rw-r--r--test/sanitizer_common/TestCases/Posix/posix_memalign-alignment.cc47
-rw-r--r--test/sanitizer_common/TestCases/Posix/putc_putchar_unlocked.cc12
-rw-r--r--test/sanitizer_common/TestCases/Posix/readlink.c26
-rw-r--r--test/sanitizer_common/TestCases/Posix/readlinkat.c28
-rw-r--r--test/sanitizer_common/TestCases/Posix/regex.cc71
-rw-r--r--test/sanitizer_common/TestCases/Posix/sanitizer_set_death_callback_test.cc45
-rw-r--r--test/sanitizer_common/TestCases/Posix/sanitizer_set_report_fd_test.cc34
-rw-r--r--test/sanitizer_common/TestCases/Posix/setvbuf.cc81
-rw-r--r--test/sanitizer_common/TestCases/Posix/sl_add.cc26
-rw-r--r--test/sanitizer_common/TestCases/Posix/strlcat.cc54
-rw-r--r--test/sanitizer_common/TestCases/Posix/strlcpy.cc54
-rw-r--r--test/sanitizer_common/TestCases/Posix/strtonum.cc54
-rw-r--r--test/sanitizer_common/TestCases/Posix/strxfrm.c20
-rw-r--r--test/sanitizer_common/TestCases/Posix/sysctl.cc64
-rw-r--r--test/sanitizer_common/TestCases/Posix/vis.cc247
-rw-r--r--test/sanitizer_common/TestCases/Posix/wcsxfrm.c20
-rw-r--r--test/sanitizer_common/TestCases/Posix/weak_hook_test.cc83
-rw-r--r--test/sanitizer_common/TestCases/allocator_returns_null.cc114
-rw-r--r--test/sanitizer_common/TestCases/corelimit.cc16
-rw-r--r--test/sanitizer_common/TestCases/ctype.c89
-rw-r--r--test/sanitizer_common/TestCases/fopen_nullptr.c6
-rw-r--r--test/sanitizer_common/TestCases/get_module_and_offset_for_pc.cc66
-rw-r--r--test/sanitizer_common/TestCases/hard_rss_limit_mb_test.cc43
-rw-r--r--test/sanitizer_common/TestCases/malloc_hook.cc61
-rw-r--r--test/sanitizer_common/TestCases/options-help.cc8
-rw-r--r--test/sanitizer_common/TestCases/options-include.cc49
-rw-r--r--test/sanitizer_common/TestCases/options-invalid.cc15
-rw-r--r--test/sanitizer_common/TestCases/print-stack-trace.cc26
-rw-r--r--test/sanitizer_common/TestCases/printf-ldbl.c13
-rw-r--r--test/sanitizer_common/TestCases/pthread_mutexattr_get.cc22
-rw-r--r--test/sanitizer_common/TestCases/sanitizer_coverage_inline8bit_counter.cc43
-rw-r--r--test/sanitizer_common/TestCases/sanitizer_coverage_no_prune.cc16
-rw-r--r--test/sanitizer_common/TestCases/sanitizer_coverage_stack_depth.cc32
-rw-r--r--test/sanitizer_common/TestCases/sanitizer_coverage_symbolize.cc28
-rw-r--r--test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard-dso.cc74
-rw-r--r--test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard-init.cc73
-rw-r--r--test/sanitizer_common/TestCases/sanitizer_coverage_trace_pc_guard.cc41
-rw-r--r--test/sanitizer_common/TestCases/scanf-ldbl.c13
-rw-r--r--test/sanitizer_common/TestCases/strcasestr.c16
-rw-r--r--test/sanitizer_common/TestCases/strcspn.c13
-rw-r--r--test/sanitizer_common/TestCases/strnlen.c12
-rw-r--r--test/sanitizer_common/TestCases/strpbrk.c14
-rw-r--r--test/sanitizer_common/TestCases/strspn.c13
-rw-r--r--test/sanitizer_common/TestCases/strstr.c12
-rw-r--r--test/sanitizer_common/TestCases/symbolize_pc.cc57
-rw-r--r--test/sanitizer_common/TestCases/symbolize_pc_inline.cc32
-rw-r--r--test/sanitizer_common/TestCases/symbolize_stack.cc28
-rw-r--r--test/sanitizer_common/Unit/lit.site.cfg.in14
-rw-r--r--test/sanitizer_common/android_commands/android_common.py46
-rwxr-xr-xtest/sanitizer_common/android_commands/android_compile.py36
-rwxr-xr-xtest/sanitizer_common/android_commands/android_run.py39
-rwxr-xr-xtest/sanitizer_common/ios_commands/iossim_compile.py32
-rwxr-xr-xtest/sanitizer_common/ios_commands/iossim_env.py17
-rwxr-xr-xtest/sanitizer_common/ios_commands/iossim_prepare.py5
-rwxr-xr-xtest/sanitizer_common/ios_commands/iossim_run.py36
-rw-r--r--test/sanitizer_common/lit.common.cfg72
-rw-r--r--test/sanitizer_common/lit.site.cfg.in14
-rw-r--r--test/sanitizer_common/print_address.h21
-rw-r--r--test/scudo/CMakeLists.txt41
-rw-r--r--test/scudo/aligned-new.cpp86
-rw-r--r--test/scudo/alignment.c23
-rw-r--r--test/scudo/dealloc-race.c69
-rw-r--r--test/scudo/double-free.cpp37
-rw-r--r--test/scudo/fsanitize.c28
-rw-r--r--test/scudo/interface.cpp92
-rw-r--r--test/scudo/lit.cfg60
-rw-r--r--test/scudo/lit.site.cfg.in11
-rw-r--r--test/scudo/malloc.cpp37
-rw-r--r--test/scudo/memalign.c103
-rw-r--r--test/scudo/mismatch.cpp31
-rw-r--r--test/scudo/options.cpp25
-rw-r--r--test/scudo/overflow.c39
-rw-r--r--test/scudo/preinit.c40
-rw-r--r--test/scudo/preload.cpp21
-rw-r--r--test/scudo/quarantine.c124
-rw-r--r--test/scudo/random_shuffle.cpp23
-rw-r--r--test/scudo/realloc.cpp92
-rw-r--r--test/scudo/rss.c56
-rw-r--r--test/scudo/secondary.c53
-rw-r--r--test/scudo/sized-delete.cpp41
-rw-r--r--test/scudo/sizes.cpp75
-rw-r--r--test/scudo/stats.c21
-rw-r--r--test/scudo/symbols.test8
-rw-r--r--test/scudo/threads.c65
-rw-r--r--test/scudo/tsd_destruction.c42
-rw-r--r--test/scudo/valloc.c66
-rw-r--r--test/shadowcallstack/CMakeLists.txt21
-rw-r--r--test/shadowcallstack/init.c12
-rw-r--r--test/shadowcallstack/libc_support.h41
-rw-r--r--test/shadowcallstack/lit.cfg23
-rw-r--r--test/shadowcallstack/lit.site.cfg.in12
-rw-r--r--test/shadowcallstack/minimal_runtime.h43
-rw-r--r--test/shadowcallstack/overflow-aarch64.c5
-rw-r--r--test/shadowcallstack/overflow-x86_64.c5
-rw-r--r--test/shadowcallstack/overflow.c39
-rw-r--r--test/tsan/CMakeLists.txt96
-rw-r--r--test/tsan/Darwin/deadlock.mm47
-rw-r--r--test/tsan/Darwin/debug_external.cc64
-rw-r--r--test/tsan/Darwin/dispatch_main.mm38
-rw-r--r--test/tsan/Darwin/dispatch_once_deadlock.mm41
-rw-r--r--test/tsan/Darwin/dlopen.cc43
-rw-r--r--test/tsan/Darwin/external-dups.cc58
-rw-r--r--test/tsan/Darwin/external-ignore-noninstrumented.cc19
-rw-r--r--test/tsan/Darwin/external-lib.cc68
-rw-r--r--test/tsan/Darwin/external-noninstrumented-module.cc27
-rw-r--r--test/tsan/Darwin/external-swift-debugging.cc68
-rw-r--r--test/tsan/Darwin/external-swift.cc92
-rw-r--r--test/tsan/Darwin/external.cc105
-rw-r--r--test/tsan/Darwin/gcd-after.mm41
-rw-r--r--test/tsan/Darwin/gcd-apply-race.mm30
-rw-r--r--test/tsan/Darwin/gcd-apply.mm48
-rw-r--r--test/tsan/Darwin/gcd-async-norace.mm26
-rw-r--r--test/tsan/Darwin/gcd-async-race.mm38
-rw-r--r--test/tsan/Darwin/gcd-barrier-race.mm48
-rw-r--r--test/tsan/Darwin/gcd-barrier.mm49
-rw-r--r--test/tsan/Darwin/gcd-blocks.mm34
-rw-r--r--test/tsan/Darwin/gcd-data.mm36
-rw-r--r--test/tsan/Darwin/gcd-fd.mm60
-rw-r--r--test/tsan/Darwin/gcd-groups-destructor.mm43
-rw-r--r--test/tsan/Darwin/gcd-groups-leave.mm56
-rw-r--r--test/tsan/Darwin/gcd-groups-norace.mm53
-rw-r--r--test/tsan/Darwin/gcd-groups-stress.mm43
-rw-r--r--test/tsan/Darwin/gcd-io-barrier-race.mm55
-rw-r--r--test/tsan/Darwin/gcd-io-barrier.mm48
-rw-r--r--test/tsan/Darwin/gcd-io-cleanup.mm56
-rw-r--r--test/tsan/Darwin/gcd-io-race.mm56
-rw-r--r--test/tsan/Darwin/gcd-io.mm117
-rw-r--r--test/tsan/Darwin/gcd-once.mm55
-rw-r--r--test/tsan/Darwin/gcd-semaphore-norace.mm29
-rw-r--r--test/tsan/Darwin/gcd-serial-queue-norace.mm40
-rw-r--r--test/tsan/Darwin/gcd-source-cancel.mm36
-rw-r--r--test/tsan/Darwin/gcd-source-cancel2.mm38
-rw-r--r--test/tsan/Darwin/gcd-source-event.mm35
-rw-r--r--test/tsan/Darwin/gcd-source-event2.mm37
-rw-r--r--test/tsan/Darwin/gcd-source-registration.mm33
-rw-r--r--test/tsan/Darwin/gcd-source-registration2.mm35
-rw-r--r--test/tsan/Darwin/gcd-source-serial.mm33
-rw-r--r--test/tsan/Darwin/gcd-suspend.mm45
-rw-r--r--test/tsan/Darwin/gcd-sync-block-copy.mm34
-rw-r--r--test/tsan/Darwin/gcd-sync-norace.mm32
-rw-r--r--test/tsan/Darwin/gcd-sync-race.mm44
-rw-r--r--test/tsan/Darwin/gcd-target-queue-norace.mm41
-rw-r--r--test/tsan/Darwin/ignore-noninstrumented.mm56
-rw-r--r--test/tsan/Darwin/libcxx-call-once.mm34
-rw-r--r--test/tsan/Darwin/libcxx-future.mm30
-rw-r--r--test/tsan/Darwin/libcxx-shared-ptr-recursive.mm36
-rw-r--r--test/tsan/Darwin/libcxx-shared-ptr-stress.mm75
-rw-r--r--test/tsan/Darwin/libcxx-shared-ptr.mm50
-rw-r--r--test/tsan/Darwin/lit.local.cfg11
-rw-r--r--test/tsan/Darwin/main_tid.mm46
-rw-r--r--test/tsan/Darwin/malloc-stack-logging.cc24
-rw-r--r--test/tsan/Darwin/malloc_size.mm57
-rw-r--r--test/tsan/Darwin/norace-objcxx-run-time.mm113
-rw-r--r--test/tsan/Darwin/objc-double-property.mm21
-rw-r--r--test/tsan/Darwin/objc-race.mm55
-rw-r--r--test/tsan/Darwin/objc-simple.mm13
-rw-r--r--test/tsan/Darwin/objc-synchronize-cycle-tagged.mm42
-rw-r--r--test/tsan/Darwin/objc-synchronize-cycle.mm31
-rw-r--r--test/tsan/Darwin/objc-synchronize-nested-recursive.mm35
-rw-r--r--test/tsan/Darwin/objc-synchronize-tagged.mm62
-rw-r--r--test/tsan/Darwin/objc-synchronize.mm57
-rw-r--r--test/tsan/Darwin/osatomics-add.mm48
-rw-r--r--test/tsan/Darwin/osatomics-bitops.mm34
-rw-r--r--test/tsan/Darwin/osatomics-list.mm43
-rw-r--r--test/tsan/Darwin/osspinlock-norace.cc34
-rw-r--r--test/tsan/Darwin/realloc-zero.cc20
-rw-r--r--test/tsan/Darwin/signals-blocked.cc75
-rw-r--r--test/tsan/Darwin/symbolizer-atos.cc26
-rw-r--r--test/tsan/Darwin/symbolizer-dladdr.cc27
-rw-r--r--test/tsan/Darwin/workerthreads.mm43
-rw-r--r--test/tsan/Darwin/xpc-cancel.mm39
-rw-r--r--test/tsan/Darwin/xpc-race.mm92
-rw-r--r--test/tsan/Darwin/xpc.mm76
-rw-r--r--test/tsan/Linux/check_memcpy.cc17
-rw-r--r--test/tsan/Linux/check_preinit.cc60
-rw-r--r--test/tsan/Linux/double_race.cc52
-rw-r--r--test/tsan/Linux/lit.local.cfg9
-rw-r--r--test/tsan/Linux/mutex_robust.cc36
-rw-r--r--test/tsan/Linux/mutex_robust2.cc41
-rw-r--r--test/tsan/Linux/pie_no_aslr.cc6
-rw-r--r--test/tsan/Linux/thread_timedjoin.c39
-rw-r--r--test/tsan/Linux/thread_tryjoin.c41
-rw-r--r--test/tsan/Linux/user_fopen.cc34
-rw-r--r--test/tsan/Linux/user_malloc.cc35
-rw-r--r--test/tsan/Unit/lit.site.cfg.in23
-rw-r--r--test/tsan/aligned_vs_unaligned_race.cc35
-rw-r--r--test/tsan/annotate_happens_before.cc57
-rw-r--r--test/tsan/atexit.cc29
-rw-r--r--test/tsan/atexit2.cc26
-rw-r--r--test/tsan/atexit3.cc41
-rw-r--r--test/tsan/atomic_free.cc31
-rw-r--r--test/tsan/atomic_free2.cc20
-rw-r--r--test/tsan/atomic_free3.cc28
-rw-r--r--test/tsan/atomic_hle.cc25
-rw-r--r--test/tsan/atomic_norace.cc62
-rw-r--r--test/tsan/atomic_race.cc81
-rw-r--r--test/tsan/atomic_stack.cc30
-rw-r--r--test/tsan/atomic_store.cc49
-rw-r--r--test/tsan/barrier.cc40
-rw-r--r--test/tsan/bench.h59
-rw-r--r--test/tsan/bench_acquire_only.cc22
-rw-r--r--test/tsan/bench_acquire_release.cc21
-rw-r--r--test/tsan/bench_local_mutex.cc30
-rw-r--r--test/tsan/bench_mutex.cc31
-rw-r--r--test/tsan/bench_release_only.cc26
-rw-r--r--test/tsan/bench_rwmutex.cc28
-rw-r--r--test/tsan/bench_shadow_flush.cc48
-rw-r--r--test/tsan/bench_single_writer.cc26
-rw-r--r--test/tsan/bench_ten_mutexes.cc29
-rw-r--r--test/tsan/benign_race.cc39
-rw-r--r--test/tsan/blacklist.cc30
-rw-r--r--test/tsan/blacklist2.cc49
-rw-r--r--test/tsan/cond.c53
-rw-r--r--test/tsan/cond_cancel.c51
-rw-r--r--test/tsan/cond_destruction.cc53
-rw-r--r--test/tsan/cond_race.cc39
-rw-r--r--test/tsan/cond_version.c47
-rw-r--r--test/tsan/custom_mutex.h93
-rw-r--r--test/tsan/custom_mutex0.cc31
-rw-r--r--test/tsan/custom_mutex1.cc39
-rw-r--r--test/tsan/custom_mutex2.cc34
-rw-r--r--test/tsan/custom_mutex3.cc46
-rw-r--r--test/tsan/custom_mutex4.cc33
-rw-r--r--test/tsan/custom_mutex5.cc33
-rw-r--r--test/tsan/cxa_guard_acquire.cc25
-rw-r--r--test/tsan/deadlock_detector_stress_test.cc625
-rw-r--r--test/tsan/debug_alloc_stack.cc84
-rw-r--r--test/tsan/debug_locate.cc43
-rw-r--r--test/tsan/debugging.cc109
-rw-r--r--test/tsan/deep_stack1.cc57
-rw-r--r--test/tsan/default_options.cc32
-rwxr-xr-xtest/tsan/deflake.bash17
-rw-r--r--test/tsan/dl_iterate_phdr.cc57
-rw-r--r--test/tsan/dlclose.cc56
-rw-r--r--test/tsan/dtls.c63
-rw-r--r--test/tsan/exceptions.cc185
-rw-r--r--test/tsan/fd_close_norace.cc33
-rw-r--r--test/tsan/fd_close_norace2.cc30
-rw-r--r--test/tsan/fd_dup_norace.cc34
-rw-r--r--test/tsan/fd_dup_norace2.cc60
-rw-r--r--test/tsan/fd_dup_race.cc33
-rw-r--r--test/tsan/fd_location.cc33
-rw-r--r--test/tsan/fd_pipe_norace.cc33
-rw-r--r--test/tsan/fd_pipe_race.cc37
-rw-r--r--test/tsan/fd_socket_connect_norace.cc62
-rw-r--r--test/tsan/fd_socket_norace.cc69
-rw-r--r--test/tsan/fd_socketpair_norace.cc37
-rw-r--r--test/tsan/fd_stdout_race.cc41
-rw-r--r--test/tsan/fd_tid_recycled.cc54
-rw-r--r--test/tsan/fork_atexit.cc37
-rw-r--r--test/tsan/fork_deadlock.cc38
-rw-r--r--test/tsan/fork_multithreaded.cc44
-rw-r--r--test/tsan/fork_multithreaded3.cc40
-rw-r--r--test/tsan/free_race.c47
-rw-r--r--test/tsan/free_race.c.supp2
-rw-r--r--test/tsan/free_race2.c26
-rw-r--r--test/tsan/getline_nohang.cc42
-rw-r--r--test/tsan/global_race.cc39
-rw-r--r--test/tsan/global_race2.cc25
-rw-r--r--test/tsan/global_race3.cc29
-rw-r--r--test/tsan/halt_on_error.cc27
-rw-r--r--test/tsan/heap_race.cc24
-rw-r--r--test/tsan/ignore_free.cc34
-rw-r--r--test/tsan/ignore_lib0.cc38
-rw-r--r--test/tsan/ignore_lib0.cc.supp2
-rw-r--r--test/tsan/ignore_lib1.cc50
-rw-r--r--test/tsan/ignore_lib1.cc.supp2
-rw-r--r--test/tsan/ignore_lib2.cc36
-rw-r--r--test/tsan/ignore_lib2.cc.supp2
-rw-r--r--test/tsan/ignore_lib3.cc39
-rw-r--r--test/tsan/ignore_lib3.cc.supp2
-rw-r--r--test/tsan/ignore_lib4.cc49
-rw-r--r--test/tsan/ignore_lib5.cc83
-rw-r--r--test/tsan/ignore_lib5.cc.supp2
-rw-r--r--test/tsan/ignore_lib_lib.h25
-rw-r--r--test/tsan/ignore_malloc.cc35
-rw-r--r--test/tsan/ignore_race.cc31
-rw-r--r--test/tsan/ignore_sync.cc30
-rw-r--r--test/tsan/ignored-interceptors-mmap.cc61
-rw-r--r--test/tsan/inlined_memcpy_race.cc37
-rw-r--r--test/tsan/inlined_memcpy_race2.cc37
-rw-r--r--test/tsan/interface_atomic_test.c16
-rw-r--r--test/tsan/java.h27
-rw-r--r--test/tsan/java_alloc.cc38
-rw-r--r--test/tsan/java_finalizer.cc29
-rw-r--r--test/tsan/java_find.cc69
-rw-r--r--test/tsan/java_heap_init.cc28
-rw-r--r--test/tsan/java_lock.cc37
-rw-r--r--test/tsan/java_lock_move.cc43
-rw-r--r--test/tsan/java_lock_rec.cc57
-rw-r--r--test/tsan/java_lock_rec_race.cc51
-rw-r--r--test/tsan/java_move_overlap.cc74
-rw-r--r--test/tsan/java_move_overlap_race.cc55
-rw-r--r--test/tsan/java_race.cc28
-rw-r--r--test/tsan/java_race_move.cc35
-rw-r--r--test/tsan/java_race_pc.cc40
-rw-r--r--test/tsan/java_rwlock.cc37
-rw-r--r--test/tsan/java_symbolization.cc40
-rw-r--r--test/tsan/java_symbolization_legacy.cc44
-rw-r--r--test/tsan/java_volatile.cc42
-rw-r--r--test/tsan/large_malloc_meta.cc31
-rw-r--r--test/tsan/libcxx/lit.local.cfg12
-rw-r--r--test/tsan/libcxx/std_shared_ptr.cc24
-rw-r--r--test/tsan/lit.cfg92
-rw-r--r--test/tsan/lit.site.cfg.in14
-rw-r--r--test/tsan/load_shared_lib.cc74
-rw-r--r--test/tsan/longjmp.cc23
-rw-r--r--test/tsan/longjmp2.cc25
-rw-r--r--test/tsan/longjmp3.cc49
-rw-r--r--test/tsan/longjmp4.cc52
-rw-r--r--test/tsan/lots_of_threads.c30
-rw-r--r--test/tsan/malloc_overflow.cc23
-rw-r--r--test/tsan/malloc_stack.cc26
-rw-r--r--test/tsan/map32bit.cc47
-rw-r--r--test/tsan/memcmp_race.cc42
-rw-r--r--test/tsan/memcpy_race.cc41
-rw-r--r--test/tsan/mmap_large.cc36
-rw-r--r--test/tsan/mmap_stress.cc67
-rw-r--r--test/tsan/mop1.c40
-rw-r--r--test/tsan/mop_with_offset.cc35
-rw-r--r--test/tsan/mop_with_offset2.cc35
-rw-r--r--test/tsan/must_deadlock.cc50
-rw-r--r--test/tsan/mutex_annotations.cc49
-rw-r--r--test/tsan/mutex_bad_read_lock.cc19
-rw-r--r--test/tsan/mutex_bad_read_unlock.cc20
-rw-r--r--test/tsan/mutex_bad_unlock.cc18
-rw-r--r--test/tsan/mutex_cycle2.c35
-rw-r--r--test/tsan/mutex_cycle_long.c42
-rw-r--r--test/tsan/mutex_destroy_locked.cc22
-rw-r--r--test/tsan/mutex_destroy_locked2.cc29
-rw-r--r--test/tsan/mutex_double_lock.cc29
-rw-r--r--test/tsan/mutex_lock_destroyed.cc28
-rw-r--r--test/tsan/mutexset1.cc37
-rw-r--r--test/tsan/mutexset2.cc37
-rw-r--r--test/tsan/mutexset3.cc45
-rw-r--r--test/tsan/mutexset4.cc45
-rw-r--r--test/tsan/mutexset5.cc46
-rw-r--r--test/tsan/mutexset6.cc53
-rw-r--r--test/tsan/mutexset7.cc40
-rw-r--r--test/tsan/mutexset8.cc39
-rw-r--r--test/tsan/pie_test.cc6
-rw-r--r--test/tsan/printf-1.c16
-rw-r--r--test/tsan/pthread_atfork_deadlock.c33
-rw-r--r--test/tsan/pthread_key.cc39
-rw-r--r--test/tsan/race_on_barrier.c34
-rw-r--r--test/tsan/race_on_barrier2.c35
-rw-r--r--test/tsan/race_on_fputs.cc29
-rw-r--r--test/tsan/race_on_heap.cc48
-rw-r--r--test/tsan/race_on_mutex.c40
-rw-r--r--test/tsan/race_on_mutex2.c23
-rw-r--r--test/tsan/race_on_puts.cc30
-rw-r--r--test/tsan/race_on_read.cc45
-rw-r--r--test/tsan/race_on_speculative_load.cc30
-rw-r--r--test/tsan/race_on_write.cc38
-rw-r--r--test/tsan/race_stress.cc25
-rw-r--r--test/tsan/race_top_suppression.cc29
-rw-r--r--test/tsan/race_top_suppression1.cc32
-rw-r--r--test/tsan/race_with_finished_thread.cc42
-rw-r--r--test/tsan/real_deadlock_detector_stress_test.cc187
-rw-r--r--test/tsan/restore_stack.cc50
-rw-r--r--test/tsan/setuid.c32
-rw-r--r--test/tsan/setuid2.c27
-rw-r--r--test/tsan/signal_block.cc60
-rw-r--r--test/tsan/signal_cond.cc53
-rw-r--r--test/tsan/signal_errno.cc52
-rw-r--r--test/tsan/signal_longjmp.cc80
-rw-r--r--test/tsan/signal_malloc.cc24
-rw-r--r--test/tsan/signal_pause.cc35
-rw-r--r--test/tsan/signal_recursive.cc126
-rw-r--r--test/tsan/signal_reset.cc75
-rw-r--r--test/tsan/signal_sync.cc56
-rw-r--r--test/tsan/signal_sync2.cc77
-rw-r--r--test/tsan/signal_thread.cc53
-rw-r--r--test/tsan/signal_write.cc27
-rw-r--r--test/tsan/sigsuspend.cc44
-rw-r--r--test/tsan/simple_race.c29
-rw-r--r--test/tsan/simple_race.cc29
-rw-r--r--test/tsan/simple_stack.c85
-rw-r--r--test/tsan/simple_stack2.cc53
-rw-r--r--test/tsan/sleep_sync.cc32
-rw-r--r--test/tsan/sleep_sync2.cc24
-rw-r--r--test/tsan/stack_race.cc22
-rw-r--r--test/tsan/stack_race2.cc29
-rw-r--r--test/tsan/stack_sync_reuse.cc67
-rw-r--r--test/tsan/static_init1.cc27
-rw-r--r--test/tsan/static_init2.cc33
-rw-r--r--test/tsan/static_init3.cc47
-rw-r--r--test/tsan/static_init4.cc37
-rw-r--r--test/tsan/static_init5.cc42
-rw-r--r--test/tsan/static_init6.cc43
-rw-r--r--test/tsan/strerror_r.cc32
-rw-r--r--test/tsan/sunrpc.cc27
-rw-r--r--test/tsan/suppress_same_address.cc30
-rw-r--r--test/tsan/suppress_same_stacks.cc27
-rw-r--r--test/tsan/suppressions_global.cc29
-rw-r--r--test/tsan/suppressions_global.cc.supp2
-rw-r--r--test/tsan/suppressions_mutex.cc19
-rw-r--r--test/tsan/suppressions_mutex.cc.supp2
-rw-r--r--test/tsan/suppressions_race.cc31
-rw-r--r--test/tsan/suppressions_race.cc.supp2
-rw-r--r--test/tsan/suppressions_race2.cc31
-rw-r--r--test/tsan/suppressions_race2.cc.supp2
-rw-r--r--test/tsan/test.h91
-rw-r--r--test/tsan/thread_detach.c20
-rw-r--r--test/tsan/thread_detach2.c28
-rw-r--r--test/tsan/thread_end_with_ignore.cc24
-rw-r--r--test/tsan/thread_end_with_ignore2.cc12
-rw-r--r--test/tsan/thread_end_with_ignore3.cc22
-rw-r--r--test/tsan/thread_leak.c17
-rw-r--r--test/tsan/thread_leak2.c17
-rw-r--r--test/tsan/thread_leak3.c19
-rw-r--r--test/tsan/thread_leak4.c18
-rw-r--r--test/tsan/thread_leak5.c22
-rw-r--r--test/tsan/thread_name.cc51
-rw-r--r--test/tsan/thread_name2.cc44
-rw-r--r--test/tsan/tiny_race.c22
-rw-r--r--test/tsan/tls_race.cc24
-rw-r--r--test/tsan/tls_race2.cc34
-rw-r--r--test/tsan/tsan-vs-gvn.cc38
-rw-r--r--test/tsan/unaligned_norace.cc84
-rw-r--r--test/tsan/unaligned_race.cc129
-rw-r--r--test/tsan/vfork.cc51
-rw-r--r--test/tsan/virtual_inheritance_compile_bug.cc15
-rw-r--r--test/tsan/vptr_benign_race.cc59
-rw-r--r--test/tsan/vptr_harmful_race.cc51
-rw-r--r--test/tsan/vptr_harmful_race2.cc51
-rw-r--r--test/tsan/vptr_harmful_race3.cc53
-rw-r--r--test/tsan/vptr_harmful_race4.cc34
-rw-r--r--test/tsan/write_in_reader_lock.cc36
-rw-r--r--test/ubsan/CMakeLists.txt140
-rw-r--r--test/ubsan/TestCases/Float/cast-overflow.cpp167
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/integer-arithmetic-value-change.c345
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/integer-conversion.c351
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/integer-sign-change-blacklist.c28
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/integer-sign-change-summary.cpp13
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/integer-sign-change.c297
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/integer-truncation.c324
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/signed-integer-truncation-blacklist.c60
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/signed-integer-truncation-or-sign-change-blacklist.c58
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/signed-integer-truncation-or-sign-change-summary.cpp13
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/signed-integer-truncation-summary.cpp13
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/signed-integer-truncation.c318
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/unsigned-integer-truncation-blacklist.c60
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/unsigned-integer-truncation-summary.cpp13
-rw-r--r--test/ubsan/TestCases/ImplicitConversion/unsigned-integer-truncation.c304
-rw-r--r--test/ubsan/TestCases/Integer/add-overflow.cpp32
-rw-r--r--test/ubsan/TestCases/Integer/div-overflow.cpp10
-rw-r--r--test/ubsan/TestCases/Integer/div-zero.cpp15
-rw-r--r--test/ubsan/TestCases/Integer/incdec-overflow.cpp16
-rw-r--r--test/ubsan/TestCases/Integer/mul-overflow.cpp14
-rw-r--r--test/ubsan/TestCases/Integer/negate-overflow.cpp16
-rw-r--r--test/ubsan/TestCases/Integer/no-recover.cpp26
-rw-r--r--test/ubsan/TestCases/Integer/shift.cpp45
-rw-r--r--test/ubsan/TestCases/Integer/sub-overflow.cpp31
-rw-r--r--test/ubsan/TestCases/Integer/summary.cpp13
-rw-r--r--test/ubsan/TestCases/Integer/suppressions.cpp39
-rw-r--r--test/ubsan/TestCases/Integer/uadd-overflow.cpp32
-rw-r--r--test/ubsan/TestCases/Integer/uincdec-overflow.cpp16
-rw-r--r--test/ubsan/TestCases/Integer/umul-overflow.cpp19
-rw-r--r--test/ubsan/TestCases/Integer/usub-overflow.cpp31
-rw-r--r--test/ubsan/TestCases/Misc/Inputs/no-interception-dso.c3
-rw-r--r--test/ubsan/TestCases/Misc/Inputs/returns-unexpectedly.c1
-rw-r--r--test/ubsan/TestCases/Misc/Linux/lit.local.cfg9
-rw-r--r--test/ubsan/TestCases/Misc/Linux/print_stack_trace.cc23
-rw-r--r--test/ubsan/TestCases/Misc/Linux/ubsan_options.cc18
-rw-r--r--test/ubsan/TestCases/Misc/bool.cpp13
-rw-r--r--test/ubsan/TestCases/Misc/bool.m14
-rw-r--r--test/ubsan/TestCases/Misc/bounds.cpp31
-rw-r--r--test/ubsan/TestCases/Misc/builtins.cpp35
-rw-r--r--test/ubsan/TestCases/Misc/coverage-levels.cc48
-rw-r--r--test/ubsan/TestCases/Misc/deduplication.cpp26
-rw-r--r--test/ubsan/TestCases/Misc/enum.cpp21
-rw-r--r--test/ubsan/TestCases/Misc/log-path_test.cc38
-rw-r--r--test/ubsan/TestCases/Misc/missing_return.cpp14
-rw-r--r--test/ubsan/TestCases/Misc/monitor.cpp44
-rw-r--r--test/ubsan/TestCases/Misc/no-interception.cpp20
-rw-r--r--test/ubsan/TestCases/Misc/nonnull-arg.cpp61
-rw-r--r--test/ubsan/TestCases/Misc/nonnull.cpp42
-rw-r--r--test/ubsan/TestCases/Misc/nullability.c62
-rw-r--r--test/ubsan/TestCases/Misc/unreachable.cpp25
-rw-r--r--test/ubsan/TestCases/Misc/vla.c11
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-attribute-align_value-on-lvalue.cpp36
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-attribute-align_value-on-paramvar.cpp30
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-attribute-alloc_align-on-function-variable.cpp33
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-attribute-alloc_align-on-function.cpp29
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-attribute-assume_aligned-on-function-two-params.cpp28
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-attribute-assume_aligned-on-function.cpp28
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-blacklist.cpp20
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-builtin_assume_aligned-three-params-variable.cpp27
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-builtin_assume_aligned-three-params.cpp23
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-builtin_assume_aligned-two-params.cpp23
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-openmp.cpp28
-rw-r--r--test/ubsan/TestCases/Pointer/alignment-assumption-summary.cpp17
-rw-r--r--test/ubsan/TestCases/Pointer/index-overflow.cpp19
-rw-r--r--test/ubsan/TestCases/Pointer/unsigned-index-expression.cpp20
-rw-r--r--test/ubsan/TestCases/TypeCheck/Function/function.cpp75
-rw-r--r--test/ubsan/TestCases/TypeCheck/Function/lit.local.cfg3
-rw-r--r--test/ubsan/TestCases/TypeCheck/Linux/PR33221.cpp50
-rw-r--r--test/ubsan/TestCases/TypeCheck/Linux/lit.local.cfg9
-rw-r--r--test/ubsan/TestCases/TypeCheck/PR33221.cpp29
-rw-r--r--