mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	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
This commit is contained in:
		
							parent
							
								
									3038bc31de
								
							
						
					
					
						commit
						96c26fbba3
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								st.c
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								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) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 shyouhei
						shyouhei