summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-26 15:32:28 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-26 15:32:28 +0000
commitcd516cbbe0fcb4b567bdf8be495260ebb632a8b9 (patch)
treec0cac59a4f29c9a1ad7f77457378f89b06f7b1c6 /io.c
parentc02c2df727fb14ffada04842325077d800cea6a2 (diff)
merges r24203 from trunk into ruby_1_9_1.
-- * io.c (io_read): should taint the result. [ruby-dev:38826] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24290 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 e38d73acd0..48a6392128 100644
--- a/io.c
+++ b/io.c
@@ -1998,6 +1998,7 @@ io_read(int argc, VALUE *argv, VALUE io)
return Qnil;
}
rb_str_resize(str, n);
+ OBJ_TAINT(str);
return str;
}