summaryrefslogtreecommitdiff
path: root/chromium/third_party/cygwin/lib/perl5/5.10/tainted.pl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/cygwin/lib/perl5/5.10/tainted.pl')
-rw-r--r--chromium/third_party/cygwin/lib/perl5/5.10/tainted.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/third_party/cygwin/lib/perl5/5.10/tainted.pl b/chromium/third_party/cygwin/lib/perl5/5.10/tainted.pl
new file mode 100644
index 00000000000..6e24867a83d
--- /dev/null
+++ b/chromium/third_party/cygwin/lib/perl5/5.10/tainted.pl
@@ -0,0 +1,9 @@
+# This subroutine returns true if its argument is tainted, false otherwise.
+
+sub tainted {
+ local($@);
+ eval { kill 0 * $_[0] };
+ $@ =~ /^Insecure/;
+}
+
+1;