diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 11:16:56 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-08-22 11:16:56 +0000 |
| commit | 32dcb81d5851035de6b47ccfd760ee5b78f58d93 (patch) | |
| tree | 1f44b9ba68b65144fd838f6f4840d0cd9b5def19 /test/ruby | |
| parent | 51c3acb6f4f84730473f8a2f1a430b4d44c44660 (diff) | |
* string.c (rb_fstring, fstr_update_callback): simply delete garbage
key first.
Garbage keys can be swept by lazy sweeping invoked by creating new
fstring. So that simply do:
(1) delete garbage key and return `fstr_update_callback' immediately
(2) try again `fstr_update_callback()' to create a new fstr.
This bug can be cause memory corruption, reported by
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20140821T220302Z.fail.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
0 files changed, 0 insertions, 0 deletions
