ruby-changes:36336
From: normal <ko1@a...>
Date: Fri, 14 Nov 2014 09:26:36 +0900 (JST)
Subject: [ruby-changes:36336] normal:r48417 (trunk): vm_eval.c (rb_yield_splat): add missing GC guard
normal 2014-11-14 09:26:26 +0900 (Fri, 14 Nov 2014) New Revision: 48417 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48417 Log: 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] Modified files: trunk/ChangeLog trunk/vm_eval.c Index: ChangeLog =================================================================== --- ChangeLog (revision 48416) +++ ChangeLog (revision 48417) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Nov 14 09:25:44 2014 Eric Wong <e@8...> + + * vm_eval.c (rb_yield_splat): add missing GC guard + [Bug #10509] + Fri Nov 14 08:12:40 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> * gc.c: fix build error caused by implicit conversion with clang. Index: vm_eval.c =================================================================== --- vm_eval.c (revision 48416) +++ vm_eval.c (revision 48417) @@ -989,6 +989,7 @@ rb_yield_splat(VALUE values) https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L989 rb_raise(rb_eArgError, "not an array"); } v = rb_yield_0(RARRAY_LENINT(tmp), RARRAY_CONST_PTR(tmp)); + RB_GC_GUARD(tmp); return v; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/