diff options
author | Robin Barker <Robin.Barker@npl.co.uk> | 2009-06-23 14:51:45 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-06-23 14:51:45 +0200 |
commit | 3c4fb04a912b266806354630dd98a7e36a830fbe (patch) | |
tree | e85b9a08503591b7cc3263f9b2e254af7c6a10d8 /pp_pack.c | |
parent | ab9c44463cd5786e679d9c70d5575ccb9d47ede5 (diff) | |
download | perl-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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': |