Message-ID: <
20070208132137.GA24202@bort.ca>
p4raw-id: //depot/perl@30171
}
sv = POPs;
+ TAINT_IF(SvTAINTED(sv));
TAINT_PROPER("eval");
ENTER;
}
{
- local $::TODO = "eval currently ignores tainting";
my $val = 0;
my $tainted = '1' . $TAINT;
eval '$val = eval $tainted;';
# Rather nice code to get a tainted undef by from Rick Delaney
open FH, "test.pl" or die $!;
- $tainted=(<FH>,<FH>);
+ seek FH, 0, 2 or die $!;
+ $tainted = <FH>;
eval 'eval $tainted';
like ($@, qr/^Insecure dependency in eval/);