[ruby-cvs:65331] nagachika:r58160 (ruby_2_3): merge revision(s) 58040, 58041: [Backport #13353]
nagachika at ruby-lang.org
nagachika at ruby-lang.org
Tue Mar 28 00:35:55 JST 2017
nagachika 2017-03-28 00:35:54 +0900 (Tue, 28 Mar 2017)
New Revision: 58160
https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58160
Log:
merge revision(s) 58040,58041: [Backport #13353]
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_3/
Modified files:
branches/ruby_2_3/ext/stringio/stringio.c
branches/ruby_2_3/test/stringio/test_stringio.rb
branches/ruby_2_3/version.h
More information about the ruby-cvs
mailing list