ruby-changes:5817
From: shyouhei <ko1@a...>
Date: Sun, 15 Jun 2008 23:19:09 +0900 (JST)
Subject: [ruby-changes:5817] Ruby:r17323 (ruby_1_8_6): merge revision(s) 16569:
shyouhei 2008-06-15 23:18:43 +0900 (Sun, 15 Jun 2008) New Revision: 17323 Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/marshal.c branches/ruby_1_8_6/version.h Log: merge revision(s) 16569: * marshal.c (marshal_load): should initialize arg.data used for reentrant check. [ruby-dev:34837] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=17323&r2=17322&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=17323&r2=17322&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/marshal.c?r1=17323&r2=17322&diff_format=u Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 17322) +++ ruby_1_8_6/ChangeLog (revision 17323) @@ -1,3 +1,8 @@ +Sun Jun 15 23:18:15 2008 Yukihiro Matsumoto <matz@r...> + + * marshal.c (marshal_load): should initialize arg.data used for + reentrant check. [ruby-dev:34837] + Sun Jun 15 23:13:23 2008 Yukihiro Matsumoto <matz@r...> * parse.y (top_local_setup): fixed memory leak bug based on a Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 17322) +++ ruby_1_8_6/version.h (revision 17323) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-15" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080615 -#define RUBY_PATCHLEVEL 214 +#define RUBY_PATCHLEVEL 215 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/marshal.c =================================================================== --- ruby_1_8_6/marshal.c (revision 17322) +++ ruby_1_8_6/marshal.c (revision 17323) @@ -89,7 +89,7 @@ VALUE obj; ID sym; { - if (RBASIC(obj)->klass) { + if (obj && RBASIC(obj)->klass) { rb_raise(rb_eRuntimeError, "%s reentered", rb_id2name(sym)); } } @@ -1434,6 +1434,7 @@ } arg.src = port; arg.offset = 0; + arg.data = 0; major = r_byte(&arg); minor = r_byte(&arg); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/