From: Rafael Garcia-Suarez Date: Sat, 15 Nov 2008 10:15:22 +0000 (+0000) Subject: Add a dump to help tracing taint bugs, by Chip Salzenberg X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=59b714e260d430f6d20c1573b9cd0f5fe0955ad8;p=p5sagit%2Fp5-mst-13.2.git Add a dump to help tracing taint bugs, by Chip Salzenberg p4raw-id: //depot/perl@34837 --- diff --git a/dump.c b/dump.c index fdb8dde..724baf8 100644 --- a/dump.c +++ b/dump.c @@ -532,6 +532,8 @@ Perl_sv_peek(pTHX_ SV *sv) finish: while (unref--) sv_catpv(t, ")"); + if (PL_tainting && SvTAINTED(sv)) + sv_catpv(t, " [tainted]"); return SvPV_nolen(t); }