diff options
author | Pierre Gousseau <pierregousseau14@gmail.com> | 2017-05-02 09:01:02 +0000 |
---|---|---|
committer | Pierre Gousseau <pierregousseau14@gmail.com> | 2017-05-02 09:01:02 +0000 |
commit | 25469d9bd4174709ad3c4b85dadfa7892ebf3171 (patch) | |
tree | e9226bf335925ee8b18e812d2250179353c3cfc4 /lib/sanitizer_common/sanitizer_flags.inc | |
parent | fb29bf0414b2ea0197255e1212649141b72f69a6 (diff) | |
download | compiler-rt-25469d9bd4174709ad3c4b85dadfa7892ebf3171.tar.gz |
[asan] Add strndup/__strndup interceptors if targeting linux.
Differential Revision: https://reviews.llvm.org/D31457
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@301904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.inc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flags.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.inc b/lib/sanitizer_common/sanitizer_flags.inc index 7a5fffcf6..67a0a5810 100644 --- a/lib/sanitizer_common/sanitizer_flags.inc +++ b/lib/sanitizer_common/sanitizer_flags.inc @@ -195,6 +195,9 @@ COMMON_FLAG(bool, intercept_strpbrk, true, COMMON_FLAG(bool, intercept_strlen, true, "If set, uses custom wrappers for strlen and strnlen functions " "to find more errors.") +COMMON_FLAG(bool, intercept_strndup, true, + "If set, uses custom wrappers for strndup functions " + "to find more errors.") COMMON_FLAG(bool, intercept_strchr, true, "If set, uses custom wrappers for strchr, strchrnul, and strrchr " "functions to find more errors.") |