diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-13 00:40:52 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-13 00:40:52 +0000 |
commit | 7f6691ae77546b42a4b182ca5ddbf5e2312c6a7b (patch) | |
tree | 7f1b465783cd3a61738aecc85c56e9fee834b106 /random.c | |
parent | 803dcea481ea20fc7dfc690e73ccb23646a5c4ab (diff) |
suppress integer overflow warnings
* random.c: annotate rb_hash_start with NO_SANITIZE (seed.key.hash + h
overflows and that seems intentional)
* bignum.c: avoid (size_t)--
* cont.c: ditto
* util.c: ditto
* vm_insnhelper.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'random.c')
-rw-r--r-- | random.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1573,6 +1573,7 @@ init_seed(struct MT *mt) seed.u32[i] = genrand_int32(mt); } +NO_SANITIZE("unsigned-integer-overflow", extern st_index_t rb_hash_start(st_index_t h)); st_index_t rb_hash_start(st_index_t h) { |