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

ruby-changes:46778

From: rhe <ko1@a...>
Date: Fri, 26 May 2017 10:50:24 +0900 (JST)
Subject: [ruby-changes:46778] rhe:r58894 (trunk): compile.c: fix possible use of uninitialized value

rhe	2017-05-26 10:50:20 +0900 (Fri, 26 May 2017)

  New Revision: 58894

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

  Log:
    compile.c: fix possible use of uninitialized value
    
    LABEL::unremovable added by r58810 is not initialized by
    new_label_body(), making the optimization unstable.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 58893)
+++ compile.c	(revision 58894)
@@ -1019,6 +1019,7 @@ new_label_body(rb_iseq_t *iseq, long lin https://github.com/ruby/ruby/blob/trunk/compile.c#L1019
     labelobj->refcnt = 0;
     labelobj->set = 0;
     labelobj->rescued = LABEL_RESCUE_NONE;
+    labelobj->unremovable = 0;
     return labelobj;
 }
 

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

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