summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-30 15:13:11 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-30 15:13:11 +0000
commit8f8f21d16824c1a2f1c0b0b45ba72b040e5a0d8f (patch)
tree15485f6f1b3e29d41d7f75ab1718bc586df3914f /ext
parentc5266ef55ab0180afe77f329db8f6a0b6a8ea269 (diff)
* 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
Diffstat (limited to 'ext')
-rw-r--r--ext/syck/rubyext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index 14dbd9cb61..078de4f78d 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;
}