ruby-changes:7065
From: shugo <ko1@a...>
Date: Wed, 13 Aug 2008 18:42:38 +0900 (JST)
Subject: [ruby-changes:7065] Ruby:r18583 (trunk): * marshal.c (marshal_load): set arg.untrust properly.
shugo 2008-08-13 18:42:22 +0900 (Wed, 13 Aug 2008) New Revision: 18583 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=18583 Log: * marshal.c (marshal_load): set arg.untrust properly. Modified files: trunk/ChangeLog trunk/marshal.c Index: ChangeLog =================================================================== --- ChangeLog (revision 18582) +++ ChangeLog (revision 18583) @@ -1,3 +1,7 @@ +Wed Aug 13 18:34:22 2008 Shugo Maeda <shugo@r...> + + * marshal.c (marshal_load): set arg.untrust properly. + Wed Aug 13 17:47:09 2008 Tanaka Akira <akr@f...> * transcode.c (econv_inspect): new method. Index: marshal.c =================================================================== --- marshal.c (revision 18582) +++ marshal.c (revision 18583) @@ -1623,6 +1623,7 @@ 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(); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/