[前][次][番号順一覧][スレッド一覧]

ruby-changes:53400

From: shyouhei <ko1@a...>
Date: Thu, 8 Nov 2018 10:43:13 +0900 (JST)
Subject: [ruby-changes:53400] shyouhei:r65616 (trunk): st.c: suppress integer overlow warnings

shyouhei	2018-11-08 10:43:07 +0900 (Thu, 08 Nov 2018)

  New Revision: 65616

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65616

  Log:
    st.c: suppress integer overlow warnings
    
    This `i += h;` overflows.  Don't know the intention of the
    operation, so just suppress UBSAN.

  Modified files:
    trunk/st.c
Index: st.c
===================================================================
--- st.c	(revision 65615)
+++ st.c	(revision 65616)
@@ -1973,6 +1973,7 @@ st_hash_uint32(st_index_t h, uint32_t i) https://github.com/ruby/ruby/blob/trunk/st.c#L1973
     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)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]