diff options
Diffstat (limited to 'Master/tlpkg/tlperl.straw/lib/tainted.pl')
-rwxr-xr-x | Master/tlpkg/tlperl.straw/lib/tainted.pl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl.straw/lib/tainted.pl b/Master/tlpkg/tlperl.straw/lib/tainted.pl new file mode 100755 index 00000000000..6e24867a83d --- /dev/null +++ b/Master/tlpkg/tlperl.straw/lib/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; |