1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05: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:
shugo 2008-08-13 09:42:22 +00:00
parent 0f9594eeb9
commit 38c94fa149
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Wed Aug 13 18:34:22 2008 Shugo Maeda <shugo@ruby-lang.org>
* marshal.c (marshal_load): set arg.untrust properly.
Wed Aug 13 17:47:09 2008 Tanaka Akira <akr@fsij.org>
* transcode.c (econv_inspect): new method.

View file

@ -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();