summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-08 01:43:07 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-08 01:43:07 (GMT)
commit96c26fbba3e4b28602206c7215f4397d52b4ea75 (patch)
tree45f1d7de9e5e821b77194914b6a847bf21227a9f /st.c
parent3038bc31dec9911c88d90781b32376d43297d435 (diff)
st.c: suppress integer overlow warnings
This `i += h;` overflows. Don't know the intention of the operation, so just suppress UBSAN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/st.c b/st.c
index 1d3d48b..18b2be7 100644
--- a/st.c
+++ b/st.c
@@ -1973,6 +1973,7 @@ st_hash_uint32(st_index_t h, uint32_t i)
return murmur_step(h, i);
}
+NO_SANITIZE("unsigned-integer-overflow", extern st_index_t st_hash_uint(st_index_t h, st_index_t i));
st_index_t
st_hash_uint(st_index_t h, st_index_t i)
{