1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* complex.c (nucomp_marshal_load): should check the argument.

[ruby-core:31622]

* rational.c (nurat_marshal_load): ditto


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-08-05 09:36:16 +00:00
parent 359d537878
commit 5274f89201
6 changed files with 25 additions and 1 deletions

View file

@ -427,4 +427,11 @@ END
assert_equal(x0, x2)
end
end
def test_marshal
bug3656 = '[ruby-core:31622]'
assert_raise(TypeError, bug3656) {
Random.new.marshal_load(0)
}
end
end