diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-25 05:55:22 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-07-25 05:55:22 +0000 |
commit | 718649e4caf41fdd81a913996161b7d0e2e6f94c (patch) | |
tree | 982a7304ff142b74df2c67ff0d3833640189d9db /pack.c | |
parent | 535711b5b25c481ad3d33dc36437d8d4decab86f (diff) | |
download | ruby-718649e4caf41fdd81a913996161b7d0e2e6f94c.tar.gz |
dir.c (ruby_brace_expand): RB_GC_GUARD safety
The lifetime of a String VALUE must match or exceed the lifetime
of its R*_PTR result; otherwise the GC can while reclaim the
VALUE while the R*_PTR result is in use.
* dir.c (ruby_brace_expand): add var parameter for GC guard
(ruby_brace_glob_with_enc): adjust call
(file_s_fnmatch): ditto
(push_glob): remove misplaced GC guard
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
0 files changed, 0 insertions, 0 deletions