llvm-project/compiler-rt/test/asan/TestCases
Reid Kleckner 824eb0e6a0 [asan] Align __asan_global_start so that it works with LLD
Otherwise LLD will not align the .ASAN$GA section start, and
&__asan_globals + 1 will not be the start of the next real ASan global
metadata in .ASAN$GL.

We discovered this issue when attempting to use LLD on Windows in
Chromium: https://crbug.com/837090

llvm-svn: 330990
2018-04-26 20:46:50 +00:00
..
Android [sanitizer-coverage] nuke more stale code 2017-06-02 01:17:04 +00:00
Darwin [asan] Fix a false positive ODR violation due to LTO ConstantMerge pass [compiler-rt part, take 3] 2018-03-08 21:02:52 +00:00
Helpers ASan allocates a global data initialization array at the tail end of each 2017-09-27 23:32:01 +00:00
Linux [compiler-rt][asan][mips] UnXFAIL some consistently passing tests 2018-04-10 11:09:17 +00:00
Posix [ASan] Disable new ASan error reporting tests on various ARMs. 2018-03-30 00:03:36 +00:00
Windows [asan] Align __asan_global_start so that it works with LLD 2018-04-26 20:46:50 +00:00
alloca_big_alignment.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
alloca_constant_size.cc Hotfix for test/asan/TestCases/alloca_constant_size.cc 2018-01-17 12:32:17 +00:00
alloca_detect_custom_size_.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
alloca_instruments_all_paddings.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
alloca_loop_unpoisoning.cc [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) 2018-01-17 12:26:04 +00:00
alloca_overflow_partial.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
alloca_overflow_right.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
alloca_safe_access.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
alloca_underflow_left.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
alloca_vla_interact.cc [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) 2018-01-17 12:26:04 +00:00
allocator_returns_null.cc [ASan] Report proper ASan error on allocator failures instead of CHECK(0)-ing 2018-03-28 18:22:40 +00:00
asan_and_llvm_coverage_test.cc [asan] Enable asan_and_llvm_coverage_test.cc on Android 2017-09-16 03:26:03 +00:00
asan_options-help.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
atexit_stats.cc Finalize ASAN/NetBSD 2017-08-30 23:02:36 +00:00
atoi_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
atol_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
atoll_strict.c [windows] Fix or XFAIL remaining portable test failures and enable them 2015-08-14 17:39:48 +00:00
blacklist.cc
calloc-overflow.cc [ASan] Disable new ASan error reporting tests on various ARMs. 2018-03-30 00:03:36 +00:00
contiguous_container.cc Asan: utility function to determine first wrongly poisoned byte in 2015-11-04 19:56:03 +00:00
contiguous_container_crash.cc [asan] Port tests to shadow scale of 5 2017-11-16 23:28:50 +00:00
coverage-and-lsan.cc [sanitizer-coverage] remove stale code (old coverage); compiler-rt part 2017-05-31 18:26:32 +00:00
coverage-disabled.cc [sanitizer-coverage] disable coverage_direct=1, will remove the code in a few weeks 2017-05-01 20:01:50 +00:00
coverage-trace-pc.cc [sanitizer-coverage] implement -fsanitize-coverage=trace-pc. This is similar to trace-bb, but has a different API. We already use the equivalent flag in GCC for Linux kernel fuzzing. We may be able to use this flag with AFL too 2016-02-17 21:34:43 +00:00
debug_double_free.cc [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) 2018-01-17 12:26:04 +00:00
debug_locate.cc
debug_mapping.cc [compiler-rt] Fix broken unittest on win64 2016-07-21 14:36:25 +00:00
debug_ppc64_mapping.cc [PowerPC][asan] Fix asan tests to handle changed memory layouts 2018-01-23 16:28:17 +00:00
debug_report.cc [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) 2018-01-17 12:26:04 +00:00
debug_stacks.cc [compiler-rt] Fix broken unittest on win64 2016-07-21 14:36:25 +00:00
deep_stack_uaf.cc [ARM|ASAN] Disabling more unstable ASAN tests 2016-11-19 21:19:19 +00:00
deep_tail_call.cc
default_blacklist.cc [asan] Mark a bunch of tests as unsupported on iOS 2017-05-02 19:37:28 +00:00
default_options.cc [asan] Add more dynamic CRT mode tests 2016-11-02 15:39:08 +00:00
describe_address.cc
double-free.cc [ARM|ASAN] Disabling more unstable ASAN tests 2016-11-19 21:19:19 +00:00
error_report_callback.cc [asan] Try to fix windows test by fflush(stderr) 2017-09-20 07:16:08 +00:00
exitcode.cc [asan] Fixup to r286608 that makes the test pass on iOS. 2016-11-15 01:57:29 +00:00
force_inline_opt0.cc
frexp_interceptor.cc
global-address.cpp [asan] Fix tests broken by r312858 2017-09-09 20:07:45 +00:00
global-demangle.cc
global-location.cc
global-overflow.cc
global-underflow.cc ASan allocates a global data initialization array at the tail end of each 2017-09-27 23:32:01 +00:00
halt_on_error-1.c [Windows] Fix halt_on_error-1.c test on Windows with %env_asan_opts 2015-11-12 21:58:28 +00:00
handle_noreturn_bug.cc [asan] poison_heap=0 should not disable __asan_handle_no_return. 2018-03-12 21:46:55 +00:00
heap-overflow-large.cc Fix a flaky heap-overflow-large.cc test 2015-03-22 18:00:58 +00:00
heap-overflow.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
heavy_uar_test.cc Mark various failing tests with "UNSUPPORTED: ios". 2017-09-17 20:00:43 +00:00
huge_negative_hea_oob.cc
ill.cc [asan] Support handle_sigill on Darwin 2016-11-26 01:30:31 +00:00
init-order-atexit.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
initialization-blacklist.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
initialization-bug.cc Mark two tests (dead-strip.c, initialization-bug.cc) as unsupported on iOS. 2017-04-26 21:34:18 +00:00
initialization-constexpr.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
initialization-nobug.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
inline.cc
intercept-rethrow-exception.cc [asan] Intercept std::rethrow_exception indirectly 2018-02-26 21:40:19 +00:00
interception_failure_test.cc [asan] Add missing header in a test. 2016-11-08 01:17:58 +00:00
interface_test.cc [asan] Add -pie to uninstrumented executables on interface_test.cc 2015-06-26 23:43:03 +00:00
intra-object-overflow.cc [asan] Properly mark or disable tests that only work with shadow scale of 3 2017-11-16 23:29:19 +00:00
invalid-free.cc [ARM|ASAN] Disabling more unstable ASAN tests 2016-11-19 21:19:19 +00:00
invalid-pointer-pairs-compare-errors.cc Make detect_invalid_pointer_pairs option to be tristate. 2018-02-01 19:52:56 +00:00
invalid-pointer-pairs-compare-null.cc Use NULL instead of nullptr in invalid-pointer-pairs-compare-null.cc; nullptr is not available on older Darwin systems. 2018-02-02 20:42:29 +00:00
invalid-pointer-pairs-compare-success.cc Make detect_invalid_pointer_pairs option to be tristate. 2018-02-01 19:52:56 +00:00
invalid-pointer-pairs-subtract-errors.cc Make detect_invalid_pointer_pairs option to be tristate. 2018-02-01 19:52:56 +00:00
invalid-pointer-pairs-subtract-success.cc Make detect_invalid_pointer_pairs option to be tristate. 2018-02-01 19:52:56 +00:00
invalid-pointer-pairs.cc [asan] Remove column numbers from test expectations in invalid-pointer-pairs.cc 2017-03-26 21:20:42 +00:00
large_func_test.cc [ARM|ASAN] Disabling more unstable ASAN tests 2016-11-19 21:19:19 +00:00
log-path_test.cc [asan] Mark some more testcases as unsupported on iOS. 2017-05-02 21:22:29 +00:00
longjmp.cc
lsan_annotations.cc
malloc-no-intercept.c [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) 2018-01-17 12:26:04 +00:00
malloc-size-too-big.cc [ASan] Disable new ASan error reporting tests on various ARMs. 2018-03-30 00:03:36 +00:00
malloc_context_size.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
malloc_fill.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
max_redzone.cc [asan] Port tests to shadow scale of 5 2017-11-16 23:28:50 +00:00
memcmp_strict_test.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
memcmp_test.cc Update sanitizer tests for C++14 default in Clang 2017-12-09 13:35:52 +00:00
memset_test.cc [asan] Port tests to shadow scale of 5 2017-11-16 23:28:50 +00:00
non-executable-pc.cpp Finalize ASAN/NetBSD 2017-08-30 23:02:36 +00:00
null_deref.cc [windows] Fix or XFAIL remaining portable test failures and enable them 2015-08-14 17:39:48 +00:00
on_error_callback.cc [asan] Add more dynamic CRT mode tests 2016-11-02 15:39:08 +00:00
partial_right.cc
pass-object-byval.cc Try to fix asan test on sanitizer-windows 2017-07-28 21:43:23 +00:00
pass-struct-byval-uar.cc [asan] Remove not-android 2017-09-16 03:41:16 +00:00
pass-struct-byval.cc Add end-to-end tests for overflows of byval arguments. 2017-07-28 19:52:31 +00:00
poison_partial.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
pr33372.cc [asan] Regression test for PR33372 2017-06-24 01:40:41 +00:00
print_summary.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
printf-1.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
printf-2.c Fix ASan test cases after r263177 2016-03-11 05:04:49 +00:00
printf-3.c [windows] Fix or XFAIL remaining portable test failures and enable them 2015-08-14 17:39:48 +00:00
printf-4.c asan: Mark printf-4.c as unsupported on Windows. 2018-04-20 19:07:35 +00:00
printf-5.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
printf-m.c [asan] Mark printf-m test as unsupported on windows. 2016-12-27 22:22:32 +00:00
realloc.cc Add allocator_frees_and_returns_null_on_realloc_zero=false flag for compatibility with allocators which allow a realloc(p, 0) and don't free the pointer. 2017-03-29 18:17:22 +00:00
sanity_check_pure_c.c test: filter out -fPIE/-pie on Windows 2016-12-27 03:16:20 +00:00
scariness_score_test.cc [asan] Reduce flakiness in stack-overflow detection 2018-04-13 00:29:24 +00:00
set_shadow_test.c [asan] Temporarily mark test as broken on Windows 2016-08-19 20:48:09 +00:00
sleep_after_init.c Add new ASAN_OPTION: sleep_after_init. 2017-08-02 18:48:45 +00:00
sleep_before_dying.c [windows] Fix or XFAIL remaining portable test failures and enable them 2015-08-14 17:39:48 +00:00
small_memcpy_test.cc [asan] Properly mark or disable tests that only work with shadow scale of 3 2017-11-16 23:29:19 +00:00
speculative_load.cc [asan] Add more dynamic CRT mode tests 2016-11-02 15:39:08 +00:00
speculative_load2.cc Removing memory leak to appease windows bots. 2015-11-18 21:44:33 +00:00
stack-buffer-overflow-with-position.cc [asan] Properly mark or disable tests that only work with shadow scale of 3 2017-11-16 23:29:19 +00:00
stack-buffer-overflow.cc
stack-frame-demangle.cc
stack-oob-frames.cc Un-XFAIL tests on Windows after fixing PR27492 2016-04-27 16:38:03 +00:00
strcasestr-1.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strcasestr-2.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strcasestr_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
strcat-overlap.cc [asan] Clean up the REQUIRES of `asan/TestCases/strcat-overlap.cc` 2018-03-09 23:12:32 +00:00
strcat_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
strchr_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
strcmp_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
strcpy-overlap.cc Mark the -overlap tests are "UNSUPPORTED: android". Android test harness doesn't know how to handle suppression files. 2018-03-09 00:41:29 +00:00
strcspn-1.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strcspn-2.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strcspn_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
strdup_oob_test.cc [asan] Add more dynamic CRT mode tests 2016-11-02 15:39:08 +00:00
strip_path_prefix.c [windows] Fix or XFAIL remaining portable test failures and enable them 2015-08-14 17:39:48 +00:00
strncasecmp_strict.c Split strncmp and strncasecmp test and XFAIL one for Windows 2016-11-14 17:51:11 +00:00
strncat-overlap.cc Mark the -overlap tests are "UNSUPPORTED: android". Android test harness doesn't know how to handle suppression files. 2018-03-09 00:41:29 +00:00
strncat_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
strncmp_strict.c Split strncmp and strncasecmp test and XFAIL one for Windows 2016-11-14 17:51:11 +00:00
strncpy-overflow.cc [ARM|ASAN] Disabling more unstable ASAN tests 2016-11-19 21:19:19 +00:00
strncpy-overlap.cc Mark the -overlap tests are "UNSUPPORTED: android". Android test harness doesn't know how to handle suppression files. 2018-03-09 00:41:29 +00:00
strpbrk-1.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strpbrk-2.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strpbrk_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
strspn-1.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strspn-2.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strspn_strict.c Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
strstr-1.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strstr-2.c [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
strstr_strict.c [asan] relax strstr tests. 2016-10-24 19:07:27 +00:00
strtok.c Fix the typo in strtok.c testcase: There was a missing space in %run expansion. 2017-04-26 20:02:14 +00:00
strtol_strict.c [asan] Properly mark or disable tests that only work with shadow scale of 3 2017-11-16 23:29:19 +00:00
strtoll_strict.c [asan] Properly mark or disable tests that only work with shadow scale of 3 2017-11-16 23:29:19 +00:00
suppressions-exec-relative-location.cc [asan] Mark some more testcases as unsupported on iOS. 2017-05-02 21:22:29 +00:00
suppressions-function.cc Prefer atos to llvm-symbolizer on Darwin 2017-07-24 18:24:08 +00:00
suppressions-interceptor.cc [ASan] More ASAN_OPTIONS churn: use %env_asan_opts where applicable. 2015-08-25 18:27:53 +00:00
suppressions-library.cc test: filter out -fPIE/-pie on Windows 2016-12-27 03:16:20 +00:00
throw_call_test.cc [asan] This test now passes 2017-06-29 00:19:27 +00:00
throw_catch.cc Un-XFAIL the last C++ EH test, it was fixed by r261258 2016-02-18 21:24:30 +00:00
throw_invoke_test.cc [asan] Split the `throw_invoke_test.cc` into a Linux specific variant 2018-03-29 13:53:50 +00:00
time_interceptor.cc
uar_and_exceptions.cc Clang on Windows supports exceptions, un XFAIL the passing tests 2016-02-18 18:33:58 +00:00
unaligned_loads_and_stores.cc
use-after-delete.cc [asan] Port tests to shadow scale of 5 2017-11-16 23:28:50 +00:00
use-after-free-right.cc [ARM|ASAN] Disabling more unstable ASAN tests 2016-11-19 21:19:19 +00:00
use-after-free.cc [asan] Port tests to shadow scale of 5 2017-11-16 23:28:50 +00:00
use-after-poison.cc Use %env_asan_opts= substitution instead of 'env ASAN_OPTIONS=$ASAN_OPTIONS' 2015-08-12 23:50:12 +00:00
use-after-scope-capture.cc Try to fix more Windows portability issues in sanitizer tests 2016-07-22 18:41:22 +00:00
use-after-scope-conversion.cc [asan] Add use-after-scope test which fails because of bug in clang 2017-08-29 21:23:44 +00:00
use-after-scope-dtor-order.cc Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scope 2016-07-14 21:18:06 +00:00
use-after-scope-goto.cc [asan] Test jumps which bypass variables declaration 2016-10-27 21:02:32 +00:00
use-after-scope-if.cc Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scope 2016-07-14 21:18:06 +00:00
use-after-scope-inlined.cc [asan] Support line numbers in StackVarDescr 2017-03-30 00:41:09 +00:00
use-after-scope-loop-bug.cc [asan] Add more dynamic CRT mode tests 2016-11-02 15:39:08 +00:00
use-after-scope-loop-removed.cc [asan] Enable the rest of use-after-scope tests 2016-07-28 23:03:27 +00:00
use-after-scope-loop.cc Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scope 2016-07-14 21:18:06 +00:00
use-after-scope-nobug.cc Replace -mllvm -asan-use-after-scope=1 with -fsanitize-address-use-after-scope 2016-07-14 21:18:06 +00:00
use-after-scope-temp.cc [asan] Enable the rest of use-after-scope tests 2016-07-28 23:03:27 +00:00
use-after-scope-temp2.cc [asan] Add test which detects bugs undetectable before r288563 2016-12-08 19:13:13 +00:00
use-after-scope-types.cc [asan] Re-enable the use-after-scope-types.cc test on Darwin, now that r287028 fixed the llvm-symbolizer issue that broke this test. 2016-11-15 21:08:51 +00:00
use-after-scope.cc [asan] Turn -fsanitize-address-use-after-scope on by default [compiler-rt part] 2017-03-31 03:00:29 +00:00
verbose-log-path_test.cc Finalize ASAN/NetBSD 2017-08-30 23:02:36 +00:00
vla_chrome_testcase.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
vla_condition_overflow.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
vla_loop_overfow.cc [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
zero_page_pc.cc [windows] Fix or XFAIL remaining portable test failures and enable them 2015-08-14 17:39:48 +00:00