[ruby-cvs:65094] naruse:r57931 (ruby_2_4): merge revision(s) 57797, 57799, 57800: [Backport #13289]

naruse at ruby-lang.org naruse at ruby-lang.org
Mon Mar 13 01:51:47 JST 2017


naruse	2017-03-13 01:51:47 +0900 (Mon, 13 Mar 2017)

  New Revision: 57931

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

  Log:
    merge revision(s) 57797,57799,57800: [Backport #13289]
    
    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
    string.c: fix integer overflow
    
    * string.c (str_byte_substr): fix another integer overflow which
      can happen only when SHARABLE_MIDDLE_SUBSTRING is enabled.
      [ruby-core:79951] [Bug #13289]
    
    string.c: negation of LONG_MIN
    
    * string.c (rb_str_update): do not use negation of LONG_MIN, which
      is negative too.

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/string.c
    branches/ruby_2_4/test/ruby/test_string.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list