forked from OSchip/llvm-project
fd2833992a
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 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
malloc_stress_transfer_test.cc | ||
sanitizer_allocator_test.cc | ||
sanitizer_allocator_testlib.cc | ||
sanitizer_atomic_test.cc | ||
sanitizer_bitvector_test.cc | ||
sanitizer_bvgraph_test.cc | ||
sanitizer_common_test.cc | ||
sanitizer_deadlock_detector_test.cc | ||
sanitizer_flags_test.cc | ||
sanitizer_format_interceptor_test.cc | ||
sanitizer_ioctl_test.cc | ||
sanitizer_libc_test.cc | ||
sanitizer_linux_test.cc | ||
sanitizer_list_test.cc | ||
sanitizer_mutex_test.cc | ||
sanitizer_nolibc_test.cc | ||
sanitizer_nolibc_test_main.cc | ||
sanitizer_posix_test.cc | ||
sanitizer_printf_test.cc | ||
sanitizer_procmaps_test.cc | ||
sanitizer_pthread_wrappers.h | ||
sanitizer_quarantine_test.cc | ||
sanitizer_stackdepot_test.cc | ||
sanitizer_stacktrace_printer_test.cc | ||
sanitizer_stacktrace_test.cc | ||
sanitizer_stoptheworld_test.cc | ||
sanitizer_stoptheworld_testlib.cc | ||
sanitizer_suppressions_test.cc | ||
sanitizer_symbolizer_test.cc | ||
sanitizer_test_config.h | ||
sanitizer_test_main.cc | ||
sanitizer_test_utils.h | ||
sanitizer_thread_registry_test.cc | ||
sanitizer_vector_test.cc | ||
standalone_malloc_test.cc |