diff options
author | David Mitchell <davem@iabyn.com> | 2014-12-19 20:31:00 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2014-12-19 21:49:55 +0000 |
commit | 2e2c882dd53d6b966a0cd3b0ef111ff9e85f2c41 (patch) | |
tree | d7809bac4bc126c385cba256fe5a64cd055a31ae /asan_ignore | |
parent | ab3ebe974fa603224393cc703dcf1d58a58db38a (diff) | |
download | perl-2e2c882dd53d6b966a0cd3b0ef111ff9e85f2c41.tar.gz |
add asan_ignore - which errors to ignore
"clang -fsanitize=undefined" produces lots of false positives.
This file allows certain functions to be excluded from checking.
Use it as:
clang -fsanitize=undefined -fsanitize-blacklist=`pwd`/asan_ignore
Diffstat (limited to 'asan_ignore')
-rw-r--r-- | asan_ignore | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/asan_ignore b/asan_ignore new file mode 100644 index 0000000000..5a8bc5c7f9 --- /dev/null +++ b/asan_ignore @@ -0,0 +1,19 @@ +# This file intended to be used with clang as +# +# clang -fsanitize=foo -fsanitize-blacklist=`pwd`/asan_ignore +# +# It lists those files / functions that clang's Address Sanitizer should +# ignore. +# +# See http://clang.llvm.org/docs/SanitizerSpecialCaseList.html. + + +# The pp functions used under 'use integer' shouldn't warn about +# integer overflow etc. +# +# Unfortunately there doesn't seem to be any way to disable just specific +# errors (i.e. the integer overflow ones). The manual implies that you can +# suffix with =foo for a "tool-specific category", but neither =undefined +# nor =signed-integer-overflow worked. + +fun:Perl_pp_i_* |