[前][次][番号順一覧][スレッド一覧]

ruby-changes:12666

From: matz <ko1@a...>
Date: Tue, 4 Aug 2009 05:48:01 +0900 (JST)
Subject: [ruby-changes:12666] Ruby:r24381 (trunk): * thread.c (recursive_push): need to set UNTRUST.

matz	2009-08-04 05:45:52 +0900 (Tue, 04 Aug 2009)

  New Revision: 24381

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24381

  Log:
    * thread.c (recursive_push): need to set UNTRUST.  [ruby-dev:38997]

  Modified files:
    trunk/ChangeLog
    trunk/thread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24380)
+++ ChangeLog	(revision 24381)
@@ -1,3 +1,7 @@
+Tue Aug  4 05:43:03 2009  Yukihiro Matsumoto  <matz@r...>
+
+	* thread.c (recursive_push): need to set UNTRUST.  [ruby-dev:38997]
+
 Tue Aug  4 03:56:51 2009  Hidetoshi NAGAI  <nagai@a...>
 
 	* ext/tk/lib/tcltklib.c: fix trouble on old-style C function
Index: thread.c
===================================================================
--- thread.c	(revision 24380)
+++ thread.c	(revision 24381)
@@ -3354,6 +3354,7 @@
     sym = ID2SYM(rb_frame_this_func());
     if (NIL_P(hash) || TYPE(hash) != T_HASH) {
 	hash = rb_hash_new();
+	OBJ_UNTRUST(hash);
 	rb_thread_local_aset(rb_thread_current(), recursive_key, hash);
 	list = Qnil;
     }

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]