ruby-changes:5055
From: nobu <ko1@a...>
Date: Fri, 23 May 2008 06:15:44 +0900 (JST)
Subject: [ruby-changes:5055] Ruby:r16548 (trunk): * iseq.c (rb_iseq_compile_with_option): get rid of segv.
nobu 2008-05-23 06:15:23 +0900 (Fri, 23 May 2008) New Revision: 16548 Modified files: trunk/ChangeLog trunk/iseq.c Log: * iseq.c (rb_iseq_compile_with_option): get rid of segv. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16548&r2=16547&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/iseq.c?r1=16548&r2=16547&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 16547) +++ ChangeLog (revision 16548) @@ -1,3 +1,7 @@ +Fri May 23 06:15:20 2008 Nobuyoshi Nakada <nobu@r...> + + * iseq.c (rb_iseq_compile_with_option): get rid of segv. + Fri May 23 02:29:14 2008 Koichi Sasada <ko1@a...> * insns.def (opt_gt|ge|lt|le): use values directly to compare. Index: iseq.c =================================================================== --- iseq.c (revision 16547) +++ iseq.c (revision 16548) @@ -443,7 +443,7 @@ rb_thread_t *th = GET_THREAD(); make_compile_option(&option, opt); - if (th->base_block) { + if (th->base_block && th->base_block->iseq) { return rb_iseq_new_with_opt(node, th->base_block->iseq->name, file, th->base_block->iseq->self, ISEQ_TYPE_EVAL, &option); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/