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

ruby-changes:29484

From: ko1 <ko1@a...>
Date: Fri, 21 Jun 2013 20:33:08 +0900 (JST)
Subject: [ruby-changes:29484] ko1:r41536 (trunk): * vm_eval.c (eval_string_with_cref): fix WB miss.

ko1	2013-06-21 20:32:57 +0900 (Fri, 21 Jun 2013)

  New Revision: 41536

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

  Log:
    * vm_eval.c (eval_string_with_cref): fix WB miss.

  Modified files:
    trunk/ChangeLog
    trunk/vm_eval.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41535)
+++ ChangeLog	(revision 41536)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jun 21 20:32:13 2013  Koichi Sasada  <ko1@a...>
+
+	* vm_eval.c (eval_string_with_cref): fix WB miss.
+
 Fri Jun 21 20:15:49 2013  Koichi Sasada  <ko1@a...>
 
 	* include/ruby/ruby.h: support write barrier protection for T_STRUCT.
Index: vm_eval.c
===================================================================
--- vm_eval.c	(revision 41535)
+++ vm_eval.c	(revision 41536)
@@ -1283,7 +1283,7 @@ eval_string_with_cref(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/vm_eval.c#L1283
 			    rb_str_update(mesg, 0, 0, RARRAY_AREF(errat, 0));
 			}
 		    }
-		    RARRAY_AREF(errat, 0) = RARRAY_AREF(bt2, 0);
+		    RARRAY_ASET(errat, 0, RARRAY_AREF(bt2, 0));
 		}
 	    }
 	    rb_exc_raise(errinfo);

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

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