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

ruby-changes:42474

From: nobu <ko1@a...>
Date: Tue, 12 Apr 2016 10:54:44 +0900 (JST)
Subject: [ruby-changes:42474] nobu:r54548 (trunk): compile.c: initialize LABEL fields

nobu	2016-04-12 11:51:20 +0900 (Tue, 12 Apr 2016)

  New Revision: 54548

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54548

  Log:
    compile.c: initialize LABEL fields
    
    * compile.c (new_label_body): initialize bit fields, since
      compile_data_alloc does not clear the memory.  [Bug #12082]

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54547)
+++ ChangeLog	(revision 54548)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Apr 12 11:51:18 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* compile.c (new_label_body): initialize bit fields, since
+	  compile_data_alloc does not clear the memory.  [Bug #12082]
+
 Mon Apr 11 20:18:43 2016  Koichi Sasada  <ko1@a...>
 
 	* vm_backtrace.c (frame2klass): filter only for imemo_ment.
Index: compile.c
===================================================================
--- compile.c	(revision 54547)
+++ compile.c	(revision 54548)
@@ -998,6 +998,8 @@ new_label_body(rb_iseq_t *iseq, long lin https://github.com/ruby/ruby/blob/trunk/compile.c#L998
     labelobj->sc_state = 0;
     labelobj->sp = -1;
     labelobj->refcnt = 0;
+    labelobj->set = 0;
+    labelobj->rescued = LABEL_RESCUE_NONE;
     return labelobj;
 }
 

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

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