Skip to content

Commit

Permalink
B::Stash - XSLoader security from 0.22
Browse files Browse the repository at this point in the history
Fixes https://rt.cpan.org/Ticket/Display.html?id=116201
to avoid exploitable invalid "(eval 1)" rootdir.
  • Loading branch information
Reini Urban committed Jul 16, 2016
1 parent 13d0397 commit 2168747
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Stash/Stash.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Stash.pm -- show what stashes are loaded
package B::Stash;

our $VERSION = '1.02';
our $VERSION = '1.03';

=pod
Expand Down Expand Up @@ -72,6 +72,7 @@ sub import {
eval q[
CHECK {
] . ($debug ? q[print "scanxs main\n"; my $debug=1;] : "") . q[
#line 2 B/Stash.pm
require XSLoader;
XSLoader::load('B::Stash'); # for xs only
my @arr = scanxs( $main::{"main::"},'',$debug );
Expand Down

0 comments on commit 2168747

Please sign in to comment.