llvm-project/compiler-rt/test/asan/TestCases
Alex Shlyapnikov 50c342bf3f [Sanitizers] Export aligned new/delete from runtimes.
Summary:
Export aligned new/delete to make dynamic runtimes work again.

Remove all valid new/delete cases from ASan test, there's a test in
common for that.

Reviewers: eugenis

Subscribers: srhines, kubamracek, #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D41548

llvm-svn: 321394
2017-12-23 00:30:51 +00:00
..
Android [sanitizer-coverage] nuke more stale code 2017-06-02 01:17:04 +00:00
Darwin [sanitizer] Add 'strip_env' flag to enable/disable removing sanitizer dylib from DYLD_INSERT_LIBRARIES 2017-11-29 21:42:48 +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 [Sanitizers] Export aligned new/delete from runtimes. 2017-12-23 00:30:51 +00:00
Posix Update another sanitizer test for C++14. 2017-12-10 05:50:23 +00:00
Windows Enable PDB generation with lld in asan and cfi tests on Windows. 2017-11-17 19:49:41 +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 Finalize ASAN/NetBSD 2017-08-30 23:02:36 +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 [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +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 [asan] Rename asan-instrument-allocas -> asan-instrument-dynamic-allocas 2016-08-20 17:22:36 +00:00
allocator_returns_null.cc [asan] Disable not working new test on Windows 2017-07-16 01:28: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 Add %run to all lit tests 2014-04-30 21:34:17 +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 [asan] Attempt to fix the debug_double_free.cc testcase on Windows after r288065. 2016-11-28 21:28:41 +00:00
debug_locate.cc [compiler-rt] recommit of r218481: ASan debugging API for report info extraction and locating addresses 2014-09-26 19:15:32 +00:00
debug_mapping.cc [compiler-rt] Fix broken unittest on win64 2016-07-21 14:36:25 +00:00
debug_ppc64_mapping.cc [PowerPC][asan] Update asan to handle changed memory layouts in newer kernels 2017-12-07 22:53:49 +00:00
debug_report.cc [asan] Add more dynamic CRT mode tests 2016-11-02 15:39:08 +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 Add %run to all lit tests 2014-04-30 21:34:17 +00:00
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 [ASan] Fix __asan_describe_address and add a test for it. 2014-07-21 21:33:46 +00:00
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 Add %run to all lit tests 2014-04-30 21:34:17 +00:00
frexp_interceptor.cc [ASan] Fix https://code.google.com/p/address-sanitizer/issues/detail?id=321 for time() and frexp() 2014-06-18 09:27:40 +00:00
global-address.cpp [asan] Fix tests broken by r312858 2017-09-09 20:07:45 +00:00
global-demangle.cc [asan] Remove XFAIL:android from 2 newly passing tests. 2014-07-14 08:54:10 +00:00
global-location.cc [asan] Remove XFAIL:android from 2 newly passing tests. 2014-07-14 08:54:10 +00:00
global-overflow.cc Add %run to all lit tests 2014-04-30 21:34:17 +00:00
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
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 Add %run to all lit tests 2014-04-30 21:34:17 +00:00
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 Add %run to all lit tests 2014-04-30 21:34:17 +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 [ASan] Enhance libsanitizer support for invalid-pointer-pair. 2017-12-04 18:00:24 +00:00
invalid-pointer-pairs-compare-success.cc [ASan] Enhance libsanitizer support for invalid-pointer-pair. 2017-12-04 18:00:24 +00:00
invalid-pointer-pairs-subtract-errors.cc [ASan] Enhance libsanitizer support for invalid-pointer-pair. 2017-12-04 18:00:24 +00:00
invalid-pointer-pairs-subtract-success.cc [ASan] Enhance libsanitizer support for invalid-pointer-pair. 2017-12-04 18:00:24 +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 [asan] fix four asan tests to run in use-after-return mode 2014-12-03 00:08:41 +00:00
lsan_annotations.cc [asan] Re-enable lsan_annotations test on Android. 2014-09-30 11:11:59 +00:00
malloc-no-intercept.c [asan] Disable tests which do no work on Android 2017-06-29 00:19:28 +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 Add %run to all lit tests 2014-04-30 21:34:17 +00:00
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 Fix order of arguments to fputs 2016-03-11 21:07:48 +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] Port tests to shadow scale of 5 2017-11-16 23:28:50 +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 Add %run to all lit tests 2014-04-30 21:34:17 +00:00
stack-frame-demangle.cc Add %run to all lit tests 2014-04-30 21:34:17 +00:00
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_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
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_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
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 Clang on Windows supports exceptions, un XFAIL the passing tests 2016-02-18 18:33:58 +00:00
time_interceptor.cc [ASan] Fix https://code.google.com/p/address-sanitizer/issues/detail?id=321 for time() and frexp() 2014-06-18 09:27:40 +00:00
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 Add %run to all lit tests 2014-04-30 21:34:17 +00:00
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