summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-05 13:33:49 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-05 13:33:49 +0000
commita2d32ebeb5d26bf8a0f5b905f8c6760e1686b100 (patch)
tree2b41aecf752701569c21850d4363e1ee4dcc4597
parent1939e134ff8956986f2e82484b11eeba4d77e738 (diff)
downloadruby-a2d32ebeb5d26bf8a0f5b905f8c6760e1686b100.tar.gz
ruby-a2d32ebeb5d26bf8a0f5b905f8c6760e1686b100.tar.xz
ruby-a2d32ebeb5d26bf8a0f5b905f8c6760e1686b100.zip
merges r20524 from trunk into ruby_1_9_1.
* pack.c (pack_pack): propagate taint status from format string to result string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--pack.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index afb4fa7ed..cd58c9aff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Dec 5 01:19:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): propagate taint status from format string to
+ result string.
+
Thu Dec 4 23:02:13 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
* spec/default.mspec: follows changes in rubyspec project.
diff --git a/pack.c b/pack.c
index 2ecb2d68d..c4ee6dbb3 100644
--- a/pack.c
+++ b/pack.c
@@ -1017,6 +1017,7 @@ pack_pack(VALUE ary, VALUE fmt)
if (associates) {
rb_str_associate(res, associates);
}
+ OBJ_INFECT(res, fmt);
return res;
}