diff perl-5.22.2/asan_ignore @ 8045:a16537d2fe07

<xfix> tar xf perl-5.22.2.tar.gz # Ah, whatever, I\'m doing it anyway
author HackBot
date Sat, 14 May 2016 14:54:38 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/perl-5.22.2/asan_ignore	Sat May 14 14:54:38 2016 +0000
@@ -0,0 +1,30 @@
+# 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_*
+
+# Perl's << is defined as using the underlying C's << operator, with the
+# same undefined behaviour for shifts greater than the word size.
+# (UVs normally, IVs with 'use integer')
+
+fun:Perl_pp_left_shift
+
+# this function numifies the field width in eg printf "%10f".
+# It has its own overflow detection, so don't warn about it
+
+fun:S_expect_number