[ruby-cvs:66290] nobu:r59112 (trunk): string.c: check just before modification

nobu at ruby-lang.org nobu at ruby-lang.org
Sun Jun 18 13:38:01 JST 2017


nobu	2017-06-18 13:38:01 +0900 (Sun, 18 Jun 2017)

  New Revision: 59112

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

  Log:
    string.c: check just before modification
    
    * string.c (rb_str_chomp_bang): check if modifiable after checking
      an argument and just before modification, as it can get frozen
      during the argument conversion to String.

  Modified files:
    trunk/string.c
    trunk/test/ruby/test_string.rb


More information about the ruby-cvs mailing list