[ruby-cvs:55146] akr:r47996 (trunk): * Avoid undefined behaviors found by gcc -fsanitize=undefined.

akr at ruby-lang.org akr at ruby-lang.org
Fri Oct 17 17:50:03 JST 2014


akr	2014-10-17 17:50:01 +0900 (Fri, 17 Oct 2014)

  New Revision: 47996

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

  Log:
    * Avoid undefined behaviors found by gcc -fsanitize=undefined.
      gcc (Debian 4.9.1-16) 4.9.1
    
    * include/ruby/ruby.h (INT2FIX): Avoid undefined behavior.
    
    * node.h (nd_set_line): Ditto.
    
    * pack.c (encodes): Ditto.
      (pack_unpack): Ditto.
    
    * regint.h (BIT_STATUS_AT): Ditto.
      (BS_BIT): Ditto.
    
    * time.c (time_mdump): Ditto.
      (time_mload): Ditto.
    
    * vm_core.h (VM_FRAME_MAGIC_MASK): Ditto.
    
    * vm_trace.c (recalc_add_ruby_vm_event_flags): Ditto.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
    trunk/node.h
    trunk/pack.c
    trunk/regint.h
    trunk/time.c
    trunk/vm_core.h
    trunk/vm_trace.c


More information about the ruby-cvs mailing list