diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-11-29 22:36:21 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-11-29 22:36:21 +0000 |
commit | 4d1a6e41e1eaeaf5a4672c802519f15c8fb91e91 (patch) | |
tree | 7c55765b4b0f845e8b0c51db5eb510dc6fce42ef /include/clang/Basic/Sanitizers.def | |
parent | 2ec5f551cc455df30183e796a91498c5325b17f2 (diff) | |
download | clang-4d1a6e41e1eaeaf5a4672c802519f15c8fb91e91.tar.gz clang-4d1a6e41e1eaeaf5a4672c802519f15c8fb91e91.tar.bz2 clang-4d1a6e41e1eaeaf5a4672c802519f15c8fb91e91.tar.xz |
This patch exposes to Clang users three more sanitizers are experimental features of ASan:
1) init-order sanitizer: initialization-order checker.
Status: usable, but may produce false positives w/o proper blacklisting.
2) use-after-return sanitizer
Status: implemented, but heavily understed.
Should be optional, as it significanlty slows program down.
3) use-after-scope sanitizer
Status: in progress.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168950 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Sanitizers.def')
-rw-r--r-- | include/clang/Basic/Sanitizers.def | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Basic/Sanitizers.def b/include/clang/Basic/Sanitizers.def index 1085392911..5b6df6f2c1 100644 --- a/include/clang/Basic/Sanitizers.def +++ b/include/clang/Basic/Sanitizers.def @@ -40,6 +40,13 @@ // AddressSanitizer SANITIZER("address", Address) +// More features of AddressSanitizer that should be turned on explicitly. +SANITIZER("init-order", InitOrder) +SANITIZER("use-after-return", UseAfterReturn) +SANITIZER("use-after-scope", UseAfterScope) + +SANITIZER_GROUP("address-full", AddressFull, + Address | InitOrder | UseAfterReturn | UseAfterScope) // ThreadSanitizer SANITIZER("thread", Thread) |