llvm-project/compiler-rt/lib/sanitizer_common/tests
Alex Shlyapnikov fd2833992a [Sanitizers] Make common allocator agnostic to failure handling modes.
Summary:
Make common allocator agnostic to failure handling modes and move the
decision up to the particular sanitizer's allocator, where the context
is available (call stack, parameters, return nullptr/crash mode etc.)

It simplifies the common allocator and allows the particular sanitizer's
allocator to generate more specific and detailed error reports (which
will be implemented later).

The behavior is largely the same, except one case, the violation of the
common allocator's check for "size + alignment" overflow is now reportied
as OOM instead of "bad request". It feels like a worthy tradeoff and
"size + alignment" is huge in this case anyway (thus, can be interpreted
as not enough memory to satisfy the request). There's also a Report()
statement added there.

Reviewers: eugenis

Subscribers: kubamracek, llvm-commits, #sanitizers

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

llvm-svn: 322784
2018-01-17 23:20:36 +00:00
..
CMakeLists.txt Move __tsan::Vector to __sanitizer 2017-12-04 12:30:09 +00:00
malloc_stress_transfer_test.cc [sanitizer] adding a threaded performance stress test for malloc (useful for manual analysis of malloc performance) 2016-08-23 21:12:04 +00:00
sanitizer_allocator_test.cc [Sanitizers] Make common allocator agnostic to failure handling modes. 2018-01-17 23:20:36 +00:00
sanitizer_allocator_testlib.cc Recommit: Stop intercepting some malloc-related functions on FreeBSD and 2017-01-30 19:06:13 +00:00
sanitizer_atomic_test.cc
sanitizer_bitvector_test.cc [compiler-rt] Fix fix format specifies type in test 2017-07-16 00:17:11 +00:00
sanitizer_bvgraph_test.cc
sanitizer_common_test.cc Fix warning + death test + failing test on Windows (D39072). 2017-10-30 19:06:59 +00:00
sanitizer_deadlock_detector_test.cc
sanitizer_flags_test.cc [sanitizer-coverage] nuke more stale code 2017-06-02 01:17:04 +00:00
sanitizer_format_interceptor_test.cc [asan] Fix handling of %m in printf interceptor. 2016-12-27 22:14:03 +00:00
sanitizer_ioctl_test.cc [Compiler-rt] Fix ioctl codes for MIPS in sanitizer_ioctl_test 2016-03-11 05:57:20 +00:00
sanitizer_libc_test.cc [sanitizer_common] Move filesystem-related code out of sanitizer_common.cc 2017-07-22 01:46:40 +00:00
sanitizer_linux_test.cc [sanitizer_common] Move filesystem-related code out of sanitizer_common.cc 2017-07-22 01:46:40 +00:00
sanitizer_list_test.cc Whenever reasonable, merge ASAN quarantine batches to save memory. 2017-01-19 22:15:54 +00:00
sanitizer_mutex_test.cc
sanitizer_nolibc_test.cc
sanitizer_nolibc_test_main.cc [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
sanitizer_posix_test.cc [compiler-rt] Fix TLS resource leaking in unittest 2016-06-30 19:56:14 +00:00
sanitizer_printf_test.cc [compiler-rt] Fix Sanitizer-common Unittests on win64 2016-06-29 21:57:58 +00:00
sanitizer_procmaps_test.cc [sanitizer] Track architecture and UUID of modules in LoadedModule 2016-12-02 21:27:14 +00:00
sanitizer_pthread_wrappers.h [sanitizers] Allocate 12MB for stack instead of 134MB 2016-07-12 20:10:28 +00:00
sanitizer_quarantine_test.cc Whenever reasonable, merge ASAN quarantine batches to save memory. 2017-01-19 22:15:54 +00:00
sanitizer_stackdepot_test.cc
sanitizer_stacktrace_printer_test.cc [sanitizer] Use architecture/slice information when symbolizing fat Mach-O files on Darwin 2017-01-06 21:45:05 +00:00
sanitizer_stacktrace_test.cc [sanitizer] Stop unwinding the stack when a close-to-zero PC is found 2016-06-27 15:32:18 +00:00
sanitizer_stoptheworld_test.cc
sanitizer_stoptheworld_testlib.cc
sanitizer_suppressions_test.cc Unit test the CRLF change to suppression parsing 2015-08-27 18:05:33 +00:00
sanitizer_symbolizer_test.cc XFAIL one sanitizer symbolizer test for FreeBSD 2016-07-31 19:27:46 +00:00
sanitizer_test_config.h
sanitizer_test_main.cc [compiler-rt] Do not introduce __sanitizer namespace globally 2016-09-15 21:02:18 +00:00
sanitizer_test_utils.h [Sanitizers, test] Fix sanitizer tests on Solaris (PR 33274) 2018-01-17 12:26:04 +00:00
sanitizer_thread_registry_test.cc Fixup of r293882: Forgot to update sanitizer_thread_registry.test.cc 2017-02-02 13:07:22 +00:00
sanitizer_vector_test.cc Move __tsan::Vector to __sanitizer 2017-12-04 12:30:09 +00:00
standalone_malloc_test.cc