From 698a907a44752e874254fb176fed023fe2c12210 Mon Sep 17 00:00:00 2001 From: ocean Date: Mon, 30 Jan 2006 15:13:11 +0000 Subject: * ext/syck/rubyext.c (syck_resolver_transfer): workaround for SEGV. ex: YAML.load("!map:B {}"). [ruby-core:7217] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/syck/rubyext.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext') diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c index 14dbd9cb6..078de4f78 100644 --- a/ext/syck/rubyext.c +++ b/ext/syck/rubyext.c @@ -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; } -- cgit