]> git.pld-linux.org Git - packages/perl.git/commitdiff
- security fix for Safe.pm from Debian
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 13 Jan 2003 14:05:02 +0000 (14:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    perl-Safe.patch -> 1.1

perl-Safe.patch [new file with mode: 0644]

diff --git a/perl-Safe.patch b/perl-Safe.patch
new file mode 100644 (file)
index 0000000..45da3ec
--- /dev/null
@@ -0,0 +1,20 @@
+--- perl-5.6.1.orig/ext/Opcode/Safe.pm
++++ perl-5.6.1/ext/Opcode/Safe.pm
+@@ -213,7 +213,7 @@
+     # Create anon sub ref in root of compartment.
+     # Uses a closure (on $expr) to pass in the code to be executed.
+     # (eval on one line to keep line numbers as expected by caller)
+-      my $evalcode = sprintf('package %s; sub { eval $expr; }', $root);
++      my $evalcode = sprintf('package %s; sub { @_ = (); eval $expr; }', $root);
+     my $evalsub;
+       if ($strict) { use strict; $evalsub = eval $evalcode; }
+@@ -227,7 +227,7 @@
+     my $root = $obj->{Root};
+     my $evalsub = eval
+-          sprintf('package %s; sub { do $file }', $root);
++          sprintf('package %s; sub { @_ = (); do $file }', $root);
+     return Opcode::_safe_call_sv($root, $obj->{Mask}, $evalsub);
+ }
This page took 0.100306 seconds and 4 git commands to generate.