summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-04 16:27:46 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-04 16:27:46 +0000
commit6fa92af4ed61666e6dbad0fefef326cfc4fbf12b (patch)
tree66b058611cd6acfd065aefd9c61a978d434abb67 /pack.c
parentfbdf8cb879cf8d6697f6a711cd07c940352bda88 (diff)
* 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@20525 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 bd6546cd76..9d23062119 100644
--- a/pack.c
+++ b/pack.c
@@ -1000,6 +1000,7 @@ pack_pack(ary, fmt)
if (associates) {
rb_str_associate(res, associates);
}
+ OBJ_INFECT(res, fmt);
return res;
}