[ruby-cvs:65223] naruse:r58052 (ruby_2_4): merge revision(s) 58040, 58041:

naruse at ruby-lang.org naruse at ruby-lang.org
Wed Mar 22 14:54:22 JST 2017


naruse	2017-03-22 14:54:22 +0900 (Wed, 22 Mar 2017)

  New Revision: 58052

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

  Log:
    merge revision(s) 58040,58041:
    
    stringio.c: check character code
    
    * ext/stringio/stringio.c (strio_ungetc): check if the character
      code is valid in the encoding.  reported by Ahmad Sherif
      (ahmadsherif) at https://hackerone.com/reports/209593.
    stringio.c: check range
    
    * ext/stringio/stringio.c (strio_ungetc): raise RangeError instead
      of TypeError at too big value, as well as IO#ungetc.

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/ext/stringio/stringio.c
    branches/ruby_2_4/test/stringio/test_stringio.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list