From a2d32ebeb5d26bf8a0f5b905f8c6760e1686b100 Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 5 Dec 2008 13:33:49 +0000 Subject: 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 --- pack.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pack.c') 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; } -- cgit