Skip to content

Commit

Permalink
merge revision(s) 16569:
Browse files Browse the repository at this point in the history
	* marshal.c (marshal_load): should initialize arg.data used for
	  reentrant check.  [ruby-dev:34837]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Jun 15, 2008
1 parent d834f1b commit 9a1effa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Sun Jun 15 23:18:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>

* 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@ruby-lang.org>

* parse.y (top_local_setup): fixed memory leak bug based on a
Expand Down
3 changes: 2 additions & 1 deletion marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ reentrant_check(obj, sym)
VALUE obj;
ID sym;
{
if (RBASIC(obj)->klass) {
if (obj && RBASIC(obj)->klass) {
rb_raise(rb_eRuntimeError, "%s reentered", rb_id2name(sym));
}
}
Expand Down Expand Up @@ -1434,6 +1434,7 @@ marshal_load(argc, argv)
}
arg.src = port;
arg.offset = 0;
arg.data = 0;

major = r_byte(&arg);
minor = r_byte(&arg);
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a1effa

Please sign in to comment.