llvm-project/compiler-rt/lib/asan/lit_tests
Evgeniy Stepanov 1bc7298c44 [asan] Fix nonsensical reports of partial right OOB.
In case of partial right OOB, ASan was reporting
  X is located 0 bytes to the right of [A, B)
where X was actually inside [A, B).

With this change, ASan will report B as the error address in such case.

llvm-svn: 174373
2013-02-05 14:32:03 +00:00
..
Darwin [ASan] Split ASan interface header into private and public parts. Add a test that makes sure users can include interface header 2013-01-31 13:46:14 +00:00
Helpers [ASan] test blacklist functionality for global-init-order checker (r167725) 2012-11-12 14:03:00 +00:00
Linux [ASan] Split ASan interface header into private and public parts. Add a test that makes sure users can include interface header 2013-01-31 13:46:14 +00:00
SharedLibs [ASan] port interception and shared library tests to lit 2012-08-15 07:13:51 +00:00
Unit Use LLVM_BUILD_TYPE instead of CMAKE_BUILD_TYPE in compiler-rt unit tests to match the behavior of llvm unittests 2013-01-30 12:18:49 +00:00
CMakeLists.txt Define COMPILER_RT_CAN_EXECUTE_TESTS variable on platforms where we can produce working binaries and use it in build rules for sanitizers tests 2012-12-27 13:19:23 +00:00
blacklist.cc ASan: use new option -fsanitize-blacklist in output tests 2012-12-07 22:21:21 +00:00
deep_stack_uaf.cc [asan] add a flag alloc_dealloc_mismatch (off by default for now) which finds malloc/delete, new/free, new/delete[], etc mismatches 2012-12-21 08:53:59 +00:00
deep_tail_call.cc [asan] change the asan output slightly to avoid user confusion: a) add ':' after 'AddressSanitizer' and b) changed 'crashed' to 'SEGV' 2012-10-15 13:04:58 +00:00
deep_thread_stack.cc [asan] change the asan output slightly to avoid user confusion: a) add ':' after 'AddressSanitizer' and b) changed 'crashed' to 'SEGV' 2012-10-15 13:04:58 +00:00
default_options.cc [ASan] use clangxx_asan instead of clang_asan for C++ lit tests 2012-08-15 08:54:14 +00:00
dlclose-test.cc [ASan] Port (the last one) tricky interface_test to lit, and a *huge* chunks of boilerplate to run tests for 32/64 bits and all optimization levels. Alas, lit doesn't support for loops in RUN-lines... 2012-08-15 11:26:57 +00:00
force_inline_opt0.cc Re-enable this test now that r166172 has hacked around the terrible 2012-10-18 08:06:28 +00:00
global-overflow.cc Make ASan and TSan tests a bit less brittle with @LINE FileCheck macro 2012-12-28 08:38:09 +00:00
heap-overflow.cc [ASan] Use dylib interposition to hook memory allocation in the dynamic runtime. 2013-01-22 09:14:54 +00:00
initialization-blacklist.cc ASan: use new option -fsanitize-blacklist in output tests 2012-12-07 22:21:21 +00:00
initialization-bug.cc [ASan] use brand new -fsanitize= values for init-order/use-after-return ASan output tests 2012-11-29 22:56:01 +00:00
initialization-nobug.cc [ASan] use brand new -fsanitize= values for init-order/use-after-return ASan output tests 2012-11-29 22:56:01 +00:00
interface_test.cc [ASan] Split ASan interface header into private and public parts. Add a test that makes sure users can include interface header 2013-01-31 13:46:14 +00:00
large_func_test.cc [ASan] Use dylib interposition to hook memory allocation in the dynamic runtime. 2013-01-22 09:14:54 +00:00
lit.cfg [ASan] now we don't need llvm_obj_root to access llvm-symbolizer tool 2012-11-13 07:55:16 +00:00
lit.site.cfg.in [ASan] use llvm-symbolizer (in offline mode) in ASan output tests on Linux 2012-09-28 11:05:41 +00:00
log-path_test.cc [asan] add asan option log_path=PATH to let users redirect asan reports to a file PATH.PID instead of stderr 2012-09-14 04:35:14 +00:00
log_path_fork_test.cc.disabled Temporary disable test added in r172828 as it seems to be flaky on the buildbots 2013-01-20 13:41:26 +00:00
malloc_hook.cc [ASan] use write instead of puts in malloc hooks test for ASan, as puts calls malloc on Mac 2012-08-22 13:32:37 +00:00
memcmp_test.cc [asan] change the asan output slightly to avoid user confusion: a) add ':' after 'AddressSanitizer' and b) changed 'crashed' to 'SEGV' 2012-10-15 13:04:58 +00:00
null_deref.cc Make ASan and TSan tests a bit less brittle with @LINE FileCheck macro 2012-12-28 08:38:09 +00:00
on_error_callback.cc [ASan] Change __asan_set_on_error_callback to weak overridable __asan_on_error, so that ASan would call the latter even if it finds the error early (i.e. during module initialization) 2012-10-02 14:06:39 +00:00
partial_right.cc [asan] Fix nonsensical reports of partial right OOB. 2013-02-05 14:32:03 +00:00
sanity_check_pure_c.c Make ASan and TSan tests a bit less brittle with @LINE FileCheck macro 2012-12-28 08:38:09 +00:00
shared-lib-test.cc Make ASan and TSan tests a bit less brittle with @LINE FileCheck macro 2012-12-28 08:38:09 +00:00
sleep_before_dying.c Update compiler-rt tests to match flag renaming/deprecation in Clang. 2012-11-06 02:31:42 +00:00
stack-frame-demangle.cc [Sanitizer] update style checker script and fix namespace style warnings 2013-01-30 07:45:58 +00:00
stack-overflow.cc Make ASan and TSan tests a bit less brittle with @LINE FileCheck macro 2012-12-28 08:38:09 +00:00
stack-use-after-return.cc [ASan] use brand new -fsanitize= values for init-order/use-after-return ASan output tests 2012-11-29 22:56:01 +00:00
strip_path_prefix.c Update compiler-rt tests to match flag renaming/deprecation in Clang. 2012-11-06 02:31:42 +00:00
strncpy-overflow.cc [asan] Fix nonsensical reports of partial right OOB. 2013-02-05 14:32:03 +00:00
symbolize_callback.cc [Sanitizer/ASan] Simplify the code that prints and symbolizes stack traces. Fall back to module+offset if user-provided symbolizer failed. Use weak function __asan_symbolize instead of __asan_set_symbolize_callback in ASan interface, so that we're able to symbolize reports for errors that happen before the main() is called, for example, during module initialization. 2012-10-02 12:11:17 +00:00
use-after-free.cc [ASan] Use dylib interposition to hook memory allocation in the dynamic runtime. 2013-01-22 09:14:54 +00:00
use-after-scope-inlined.cc [ASan] Make the FileCheck pattern more c++filt-resistant. 2012-12-20 13:17:49 +00:00