* ext/syck/rubyext.c (syck_resolver_transfer): workaround for SEGV.

ex: YAML.load("!map:B {}"). [ruby-core:7217]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2006-01-30 15:13:11 +00:00
parent c5266ef55a
commit 8f8f21d168
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Jan 31 00:08:22 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* ext/syck/rubyext.c (syck_resolver_transfer): workaround for SEGV.
ex: YAML.load("!map:B {}"). [ruby-core:7217]
Sat Jan 28 07:49:30 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
* lib/rdoc/usage.rb: support "a:0:33" style caller[-1]. In this case

View File

@ -1134,6 +1134,10 @@ syck_resolver_transfer( self, type, val )
type = subclass;
subclass = cYObject;
}
else /* workaround for SEGV. real fix please */
{
rb_raise( rb_eTypeError, "invalid subclass" );
}
}
break;
}