summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-15 07:34:01 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-15 07:34:01 +0000
commit86d1fc88637223edb248df7e5d327e8d1a427afb (patch)
treed7e7eaa47d04854f04305c2bb0b0e2205f94b2a5 /util.c
parenta42784000e102df0909e8a307c0b0b8ba2938304 (diff)
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
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
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)
{