This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
asan_ignore: exclude S_expect_number()
authorDavid Mitchell <davem@iabyn.com>
Mon, 22 Dec 2014 20:57:52 +0000 (20:57 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 31 Dec 2014 11:28:52 +0000 (11:28 +0000)
This function numifies the field width string in something like
printf "%10f". It handles integer overflow itself, so suppress
ASan warnings, e.g.

sv.c:10716:26: runtime error: signed integer overflow: 922337203 * 10 cannot be represented in type 'int'

asan_ignore

index 4a1dc83..e0f5685 100644 (file)
@@ -23,3 +23,8 @@ fun:Perl_pp_i_*
 # (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