mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* marshal.c (marshal_load): set arg.untrust properly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0f9594eeb9
commit
38c94fa149
2 changed files with 5 additions and 0 deletions
|
@ -1623,6 +1623,7 @@ marshal_load(int argc, VALUE *argv)
|
|||
else {
|
||||
rb_raise(rb_eTypeError, "instance of IO needed");
|
||||
}
|
||||
arg.untrust = OBJ_UNTRUSTED(port);
|
||||
arg.src = port;
|
||||
arg.offset = 0;
|
||||
arg.compat_tbl = st_init_numtable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue