summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_flags.cc
AgeCommit message (Collapse)Author
2014-02-26[sanitizer] Add a flag to enable/disable report colorization.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202249 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14[sanitizer] add iterators to bit vectors; make bit vector operations use ↵Kostya Serebryany
little stack; add common flag 'detect_deadlocks' git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201405 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-14[sanitizer] Use mmap to zero-fill large shadow regions.Evgeniy Stepanov
This is covered by existing ASan test. This does not change anything for TSan by default (but provides a flag to change the threshold size). Based on a patch by florent.bruneau here:   https://code.google.com/p/address-sanitizer/issues/detail?id=256 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201400 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-12[Sanitizer] Teach external symbolizer to work with addr2line if ↵Alexey Samsonov
llvm-symbolizer is unavailable. Allow this mode in TSan. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201218 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-31tsan: fix Go buildDmitry Vyukov
Go linker does not like function-static objects. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200534 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-28[ASan] Move the signal handling-related flags to sanitizer_common.Alexander Potapenko
This change is a part of refactoring intended to have common signal handling behavior in all tools. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200295 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-21Sanitize printf functions.Alexey Samsonov
Intercept and sanitize arguments passed to printf functions in ASan and TSan (don't do this in MSan for now). The checks are controlled by runtime flag (off by default for now). Patch http://llvm-reviews.chandlerc.com/D2480 by Yuri Gribov! git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199729 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-17[Sanitizer] Always initialize a Symbolizer (even if 'symbolize' is false).Alexey Samsonov
If 'symbolize' flag is not set, we still want to transform virtual address to module+offset pair in the call to Symbolizer::SymbolizeCode(). See https://code.google.com/p/address-sanitizer/issues/detail?id=251 for more details. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197491 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-27tsan: fix flags parsingDmitry Vyukov
- running_on_valgrind was not parsed in some contexts - refactor code a bit - add comprehensive tests for flags parsing git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195831 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-26[Sanitizer] Improve external symbolizer behavior.Alexey Samsonov
1) Don't start external symbolizer subprocess until we actually try to symbolize anything. 2) Allow to turn off external symbolizer by providing empty ?SAN_SYMBOLIZER_PATH environment variable. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195771 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-14[Sanitizer] Add print_summary runtime flag to disable error summaries (UBSan ↵Alexey Samsonov
doesn't need them) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194685 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-12[Sanitizer] Specify a default value for each common runtime flagAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@194479 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-23tsan: parse symbolize/external_symbolizer_path common flagsDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193236 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-15tsan: actually parse verbofity flagDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192704 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-15tsan: use sanitizer::CommonFlags in tsanDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192692 91177308-0d34-0410-b5e6-96231b3b80d8
2013-10-11[Sanitizer] Simplify StackTrace::FastUnwindStack interface and fix a bug ↵Alexey Samsonov
with one-frame stack traces git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192428 91177308-0d34-0410-b5e6-96231b3b80d8
2013-09-06[sanitizer] make the allocator crash instead of returning 0 on huge size ↵Kostya Serebryany
(controlled by the allocator_may_return_null flag) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190127 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-01[lsan] Add leak_check_at_exit flag.Sergey Matveev
We needed a way to tell LSan to invoke leak checking only if __do_leak_check() is called explicitly. This can now be achieved by setting leak_check_at_exit=false. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@187578 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-22[lsan] Make __lsan_do_leak_check() honor the detect_leaks flag.Sergey Matveev
Also move detect_leaks to common flags. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186821 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-25[sanitizer] Move log_path to common flag and use it in MSan.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184836 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-07[sanitizer] ioctl interceptor.Evgeniy Stepanov
ASan: disabled by default MSan: enabled by default TSan: disabled git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183517 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-29Fix MSVC W3 compiler warningsTimur Iskhodzhanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182857 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-06[asan] Common flags in ASan.Sergey Matveev
Some flags that are common to ASan/MSan/TSan/LSan have been moved to sanitizer_common. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181193 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-27tsan: better flag parsing: do not confuse flag that is a part of another flagDmitry Vyukov
(e.g. suppressions and print_suppressions) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178158 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-19[Sanitizer] Allow runtime flags be separated by colon as well as spaceAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175511 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-27[Sanitizer] align allocation sizes in low level allocatorAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162676 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-27[Sanitizer] Use low-level allocator in flag parsing to avoid calling ↵Alexey Samsonov
malloc() before ASan/TSan initialization is done git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162673 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-09[Sanitizer] move flag parsing routines (and unit tests) from tsan runtime to ↵Alexey Samsonov
common runtime. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159928 91177308-0d34-0410-b5e6-96231b3b80d8