summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-19 08:32:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-19 08:32:44 +0000
commitf08c879a20d0ada0e9e1170ccff24ef361f4768c (patch)
tree11936a3d17872dba8c56a5fd9c156bbfa25ef191 /io.c
parenta6c76cd0bb62ff763b491a3cb64cb1b2611cac8d (diff)
downloadruby-f08c879a20d0ada0e9e1170ccff24ef361f4768c.tar.gz
ruby-f08c879a20d0ada0e9e1170ccff24ef361f4768c.tar.xz
ruby-f08c879a20d0ada0e9e1170ccff24ef361f4768c.zip
* io.c (io_read): should taint the result. [ruby-dev:38826]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index e2de4a69b..44f79a735 100644
--- a/io.c
+++ b/io.c
@@ -2114,6 +2114,7 @@ io_read(int argc, VALUE *argv, VALUE io)
return Qnil;
}
rb_str_resize(str, n);
+ OBJ_TAINT(str);
return str;
}