From 86d1fc88637223edb248df7e5d327e8d1a427afb Mon Sep 17 00:00:00 2001 From: shyouhei Date: Thu, 15 Nov 2018 07:34:01 +0000 Subject: suppress integer overflow warnings * util.c: annotate as NO_SANITIZE * bignum.c: avoid (size_t)-- * marshal.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util.c') diff --git a/util.c b/util.c index ea68110527..7c83b50b8b 100644 --- a/util.c +++ b/util.c @@ -1541,6 +1541,7 @@ cmp(Bigint *a, Bigint *b) return 0; } +NO_SANITIZE("unsigned-integer-overflow", static Bigint * diff(Bigint *a, Bigint *b)); static Bigint * diff(Bigint *a, Bigint *b) { @@ -2020,6 +2021,7 @@ hexnan(double *rvp, const char **sp) #endif /*No_Hex_NaN*/ #endif /* INFNAN_CHECK */ +NO_SANITIZE("unsigned-integer-overflow", double ruby_strtod(const char *s00, char **se)); double ruby_strtod(const char *s00, char **se) { -- cgit v1.2.3