File tree 11 files changed +40
-6
lines changed
11 files changed +40
-6
lines changed Original file line number Diff line number Diff line change @@ -1764,6 +1764,7 @@ cpan/Module-Metadata/t/lib/ENDPOD.pm
1764
1764
cpan/Module-Metadata/t/lib/MBTest.pm
1765
1765
cpan/Module-Metadata/t/lib/Tie/CPHash.pm
1766
1766
cpan/Module-Metadata/t/metadata.t
1767
+ cpan/Module-Metadata/t/taint.t
1767
1768
cpan/Module-Metadata/t/version.t
1768
1769
cpan/NEXT/lib/NEXT.pm Pseudo-class NEXT for method redispatch
1769
1770
cpan/NEXT/t/actual.t NEXT
Original file line number Diff line number Diff line change @@ -1241,7 +1241,7 @@ package Maintainers;
1241
1241
1242
1242
' Module::Metadata' => {
1243
1243
' MAINTAINER' => ' dagolden' ,
1244
- ' DISTRIBUTION' => ' ETHER/Module-Metadata-1.000016 .tar.gz' ,
1244
+ ' DISTRIBUTION' => ' ETHER/Module-Metadata-1.000017 .tar.gz' ,
1245
1245
' FILES' => q[ cpan/Module-Metadata] ,
1246
1246
' EXCLUDED' => [
1247
1247
qr { ^maint} ,
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ package Module::Metadata;
10
10
# parrot future to look at other types of modules).
11
11
12
12
use strict;
13
- use vars qw( $VERSION) ;
14
- $VERSION = ' 1.000016' ;
13
+ use warnings;
14
+
15
+ our $VERSION = ' 1.000017' ;
15
16
$VERSION = eval $VERSION ;
16
17
17
18
use Carp qw/ croak/ ;
@@ -649,7 +650,7 @@ sub _evaluate_version_line {
649
650
# compiletime/runtime issues with local()
650
651
my $vsub ;
651
652
$pn ++; # everybody gets their own package
652
- my $eval = qq{ BEGIN { q# Hide from _packages_inside()
653
+ my $eval = qq{ BEGIN { my \$ dummy = q# Hide from _packages_inside()
653
654
#; package Module::Metadata::_version::p$pn ;
654
655
use version;
655
656
no strict;
@@ -662,6 +663,8 @@ sub _evaluate_version_line {
662
663
};
663
664
}} ;
664
665
666
+ $eval = $1 if $eval =~ m { ^(.+)} s ;
667
+
665
668
local $^W;
666
669
# Try to get the $VERSION
667
670
eval $eval ;
Original file line number Diff line number Diff line change 1
1
# !perl
2
2
3
3
use strict;
4
+ use warnings;
4
5
use File::Spec;
5
6
use Test::More;
6
7
Original file line number Diff line number Diff line change 1
1
package DistGen ;
2
2
3
3
use strict;
4
+ use warnings;
4
5
5
6
use vars qw( $VERSION $VERBOSE @EXPORT_OK) ;
6
7
@@ -182,6 +183,7 @@ sub _gen_default_filedata {
182
183
\$ VERSION = '0.01';
183
184
184
185
use strict;
186
+ use warnings;
185
187
186
188
1;
187
189
@@ -205,6 +207,7 @@ sub _gen_default_filedata {
205
207
$self -> $add_unless (' t/basic.t' , undent(<<" ---" ));
206
208
use Test::More tests => 1;
207
209
use strict;
210
+ use warnings;
208
211
209
212
use $self ->{name};
210
213
ok 1;
@@ -470,6 +473,7 @@ sub change_build_pl {
470
473
471
474
$self -> change_file( ' Build.PL' , undent(<<" ---" ) );
472
475
use strict;
476
+ use warnings;
473
477
use Module::Build;
474
478
my \$ b = Module::Build->new(
475
479
# Some CPANPLUS::Dist::Build versions need to allow mismatches
Original file line number Diff line number Diff line change 1
1
package MBTest ;
2
2
3
3
use strict;
4
+ use warnings;
4
5
5
6
use IO::File ();
6
7
use File::Spec;
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ package Tie::CPHash;
20
20
21
21
require 5.000;
22
22
use strict;
23
+ use warnings;
23
24
use vars qw( @ISA $VERSION) ;
24
25
25
26
@ISA = qw( ) ;
Original file line number Diff line number Diff line change 3
3
# vim:ts=8:sw=2:et:sta:sts=2
4
4
5
5
use strict;
6
+ use warnings;
6
7
use lib ' t/lib' ;
7
8
use IO::File;
8
9
use MBTest;
Original file line number Diff line number Diff line change
1
+ # !/usr/bin/perl -T
2
+ use strict;
3
+ use warnings;
4
+
5
+ use 5.008000; # for ${^TAINT}
6
+ use Module::Metadata;
7
+ use Test::More;
8
+ use Test::Fatal;
9
+
10
+ ok(${^TAINT}, ' taint flag is set' );
11
+
12
+ # without the fix, we get:
13
+ # Insecure dependency in eval while running with -T switch at lib/Module/Metadata.pm line 668, <GEN0> line 15.
14
+ is(
15
+ exception { Module::Metadata-> new_from_module( " Module::Metadata" )-> version },
16
+ undef ,
17
+ ' no exception' ,
18
+ );
19
+
20
+ done_testing;
Original file line number Diff line number Diff line change 1
1
use strict;
2
+ use warnings;
2
3
use Test::More;
3
4
use Module::Metadata;
4
5
use lib " t/lib/0_2" ;
Original file line number Diff line number Diff line change @@ -325,10 +325,11 @@ C<requires> has been made more robust. [cpan #83728]
325
325
326
326
=item *
327
327
328
- L<Module::Metadata> has been upgraded from version 1.000014 to 1.000016 .
328
+ L<Module::Metadata> has been upgraded from version 1.000014 to 1.000017 .
329
329
330
330
The module's DESCRIPTION has been re-worded regarding safety/security to
331
- satisfy CVE-2013-1437.
331
+ satisfy CVE-2013-1437. Also, versions are now detainted if needed. [cpan
332
+ #88576]
332
333
333
334
=item *
334
335
You can’t perform that action at this time.
0 commit comments