diff options
author | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 09:42:22 +0000 |
---|---|---|
committer | shugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 09:42:22 +0000 |
commit | 03b7544a57433affbe8762a1e90caca381d5e2f6 (patch) | |
tree | a0814773bcda8549c15b90f9218b9923f9a0059f | |
parent | 43f0c9308a2dff9943ec6631c5e85095bd61f976 (diff) | |
download | ruby-03b7544a57433affbe8762a1e90caca381d5e2f6.tar.gz ruby-03b7544a57433affbe8762a1e90caca381d5e2f6.tar.xz ruby-03b7544a57433affbe8762a1e90caca381d5e2f6.zip |
* marshal.c (marshal_load): set arg.untrust properly.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | marshal.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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. @@ -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(); |