diff options
author | Karl Williamson <khw@cpan.org> | 2019-05-03 13:57:47 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-05-24 17:09:30 -0600 |
commit | 814735a391b874af8f00eaf89469e5ec7f38cd4a (patch) | |
tree | b7f652cf8c5eac3042fcc8304ff8df3418f573c7 /asan_ignore | |
parent | bae047b68c92622bb4bb04499e36cdaa48138909 (diff) | |
download | perl-814735a391b874af8f00eaf89469e5ec7f38cd4a.tar.gz |
Remove undefined behavior from IV shifting
It is undefined behavior to shift a negative integer to the left. This
commit avoids that by treating the value as unsigned, then casting back
to integer for return.
Diffstat (limited to 'asan_ignore')
-rw-r--r-- | asan_ignore | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/asan_ignore b/asan_ignore index e0f5685bc1..f520546210 100644 --- a/asan_ignore +++ b/asan_ignore @@ -18,11 +18,6 @@ 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 |