summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorRobin Barker <Robin.Barker@npl.co.uk>2009-06-23 14:51:45 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-06-23 14:51:45 +0200
commit3c4fb04a912b266806354630dd98a7e36a830fbe (patch)
treee85b9a08503591b7cc3263f9b2e254af7c6a10d8 /pp_pack.c
parentab9c44463cd5786e679d9c70d5575ccb9d47ede5 (diff)
downloadperl-3c4fb04a912b266806354630dd98a7e36a830fbe.tar.gz
Fix for RT #52552.
This patch only taints for pack('a'/'A') which was the original bug. I guess the previous behaviour (pre-5.10.0) tainted on all tainted input. That more general behaviour may be recoverable - not sure what we want.
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 31cc8eb25f..72a96666cf 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -2798,6 +2798,7 @@ S_pack_rec(pTHX_ SV *cat, tempsym_t* symptr, SV **beglist, SV **endlist )
}
memset(cur, datumtype == 'A' ? ' ' : '\0', len);
cur += len;
+ SvTAINT(cat);
break;
}
case 'B':