summaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-04 16:20:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-04 16:20:02 +0000
commit9b8556ad93a1eaefc423ea75bebe26e884e0b769 (patch)
tree8d73333c6eb4834837765687d4a9da2d1ddd6bca /pack.c
parentfb3610b783474df6da44c9e9a9ec8148fa3b26c1 (diff)
downloadruby-9b8556ad93a1eaefc423ea75bebe26e884e0b769.tar.gz
ruby-9b8556ad93a1eaefc423ea75bebe26e884e0b769.tar.xz
ruby-9b8556ad93a1eaefc423ea75bebe26e884e0b769.zip
* pack.c (pack_pack): propagate taint status from format string to
result string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20524 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 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;
}