llvm-project/compiler-rt/test/scudo
Kostya Serebryany 707894b092 [sanitizer] Implement a __asan_default_options() equivalent for Scudo
Summary:
Currently, the Scudo Hardened Allocator only gets its flags via the SCUDO_OPTIONS environment variable.
With this patch, we offer the opportunity for programs to define their own options via __scudo_default_options() which behaves like __asan_default_options() (weak symbol).
A relevant test has been added as well, and the documentation updated accordingly.
I also used this patch as an opportunity to rename a few variables to comply with the LLVM naming scheme, and replaced a use of Report with dieWithMessage for consistency (and to avoid a callback).

Reviewers: llvm-commits, kcc

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

llvm-svn: 277536
2016-08-02 22:25:38 +00:00
..
CMakeLists.txt [compiler-rt] Fix VisualStudio virtual folders layout 2016-07-11 21:51:56 +00:00
alignment.cpp
double-free.cpp
lit.cfg
lit.site.cfg.in
malloc.cpp
memalign.cpp [scudo] trying to fix the bot: aligned_alloc is not known there; attempt 3 2016-06-07 23:49:11 +00:00
mismatch.cpp
options.cpp [sanitizer] Implement a __asan_default_options() equivalent for Scudo 2016-08-02 22:25:38 +00:00
overflow.cpp
preinit.cpp
quarantine.cpp
realloc.cpp
sized-delete.cpp
sizes.cpp