windows-nt/Source/XPSP1/NT/tools/x86/perl/lib/tainted.pl

10 lines
164 B
Perl
Raw Normal View History

2020-09-26 03:20:57 -05:00
# This subroutine returns true if its argument is tainted, false otherwise.
sub tainted {
local($@);
eval { kill 0 * $_[0] };
$@ =~ /^Insecure/;
}
1;