[ruby-cvs:64963] nobu:r57797 (trunk): string.c: fix integer overflow

nobu at ruby-lang.org nobu at ruby-lang.org
Tue Mar 7 14:48:15 JST 2017


nobu	2017-03-07 14:48:15 +0900 (Tue, 07 Mar 2017)

  New Revision: 57797

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

  Log:
    string.c: fix integer overflow
    
    * string.c (rb_str_subpos): fix integer overflow which can happen
      only when SHARABLE_MIDDLE_SUBSTRING is enabled.  incorpolate
      https://github.com/mruby/mruby/commit/7db0786abdd243ba031e24683f

  Modified files:
    trunk/string.c


More information about the ruby-cvs mailing list