[ruby-cvs:61386] usa:r54225 (trunk): * time.c (wdiv, wmod): wdivmod0() assumes the 3rd and the 4th arguments

usa at ruby-lang.org usa at ruby-lang.org
Tue Mar 22 10:37:01 JST 2016


usa	2016-03-22 10:37:01 +0900 (Tue, 22 Mar 2016)

  New Revision: 54225

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

  Log:
    * time.c (wdiv, wmod): wdivmod0() assumes the 3rd and the 4th arguments
      are valid pointers.
      maybe checking them in wdivmod0() is better manner, but I guess that
      passing real dummy pointers may be faster than checking and branching
      in wdivmod0().
      this commit fixes SEGV on 32bit and LLP64 platforms.

  Modified files:
    trunk/ChangeLog
    trunk/time.c


More information about the ruby-cvs mailing list