зеркало из https://github.com/github/ruby.git
vm_eval.c (rb_yield_splat): add missing GC guard
Nobody uses this function in our source tree, but maybe this bug is triggered by certain C extensions. [Bug #10509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
30a69a5998
Коммит
f0208a8995
|
@ -1,3 +1,8 @@
|
|||
Fri Nov 14 09:25:44 2014 Eric Wong <e@80x24.org>
|
||||
|
||||
* vm_eval.c (rb_yield_splat): add missing GC guard
|
||||
[Bug #10509]
|
||||
|
||||
Fri Nov 14 08:12:40 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* gc.c: fix build error caused by implicit conversion with clang.
|
||||
|
|
|
@ -989,6 +989,7 @@ rb_yield_splat(VALUE values)
|
|||
rb_raise(rb_eArgError, "not an array");
|
||||
}
|
||||
v = rb_yield_0(RARRAY_LENINT(tmp), RARRAY_CONST_PTR(tmp));
|
||||
RB_GC_GUARD(tmp);
|
||||
return v;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче