This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89d1f0e
)
Add a dump to help tracing taint bugs, by Chip Salzenberg
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Sat, 15 Nov 2008 10:15:22 +0000
(10:15 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Sat, 15 Nov 2008 10:15:22 +0000
(10:15 +0000)
p4raw-id: //depot/perl@34837
dump.c
patch
|
blob
|
blame
|
history
diff --git
a/dump.c
b/dump.c
index
fdb8dde
..
724baf8
100644
(file)
--- 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);
}