summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-18 13:16:37 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-18 13:16:37 +0000
commit8c6b78c1da4565a3a625d9d17746b9bc5e38ff04 (patch)
tree742bb1059950ae175cc33c20b0318386dae02815 /pack.c
parentc80ddbd8598a1d59db938d9b5036311160b584d6 (diff)
merge revision(s) 20525:
* pack.c (pack_pack): propagate taint status from format string to result string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@22408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pack.c b/pack.c
index e5324d1e8e..97c52e433e 100644
--- a/pack.c
+++ b/pack.c
@@ -1001,6 +1001,7 @@ pack_pack(ary, fmt)
if (associates) {
rb_str_associate(res, associates);
}
+ OBJ_INFECT(res, fmt);
return res;
}