diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-18 04:38:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-18 04:38:01 +0000 |
commit | 773174d810d5a9bb968befe8cf44fb7d75c83500 (patch) | |
tree | 0a1b9c32f17af390e4d7405892de0ec473dc56e7 /test/test_abbrev.rb | |
parent | 01082829f5a77352dd886bbfcca526e6e2961a81 (diff) | |
download | ruby-773174d810d5a9bb968befe8cf44fb7d75c83500.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_abbrev.rb')
0 files changed, 0 insertions, 0 deletions