Skip to content

Commit 8ff56de

Browse files
committed
* 0.73 with File::Spec->file_name_is_absolute.
It's more correct, but ultimately equivalent, because we don't install on Win32 anyway. Also add CVE-2013-2145 reference to Changes.
1 parent cbd06b3 commit 8ff56de

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

Changes

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
1+
[Changes for 0.73 - Wed Jun 5 23:44:57 CST 2013]
2+
3+
* Properly redo the previous fix using File::Spec->file_name_is_absolute.
4+
15
[Changes for 0.72 - Wed Jun 5 23:19:02 CST 2013]
26

37
* Only allow loading Digest::* from absolute paths in @INC,
48
by ensuring they begin with \ or / characters.
59

6-
Contributed by: Florian Weimer
10+
Contributed by: Florian Weimer (CVE-2013-2145)
711

812
[Changes for 0.71 - Tue Jun 4 18:24:10 CST 2013]
913

1014
* Constrain the user-specified digest name to /^\w+\d+$/.
1115

1216
* Avoid loading Digest::* from relative paths in @INC.
1317

14-
Contributed by: Florian Weimer
18+
Contributed by: Florian Weimer (CVE-2013-2145)
1519

1620
[Changes for 0.70 - Thu Nov 29 01:45:54 CST 2012]
1721

META.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ requires:
2525
perl: 5.005
2626
resources:
2727
repository: http://github.com/audreyt/module-signature
28-
version: 0.72
28+
version: 0.73

lib/Module/Signature.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package Module::Signature;
2-
$Module::Signature::VERSION = '0.72';
2+
$Module::Signature::VERSION = '0.73';
33

44
use 5.005;
55
use strict;
@@ -18,6 +18,7 @@ use constant CIPHER_UNKNOWN => -6;
1818

1919
use ExtUtils::Manifest ();
2020
use Exporter;
21+
use File::Spec;
2122

2223
@EXPORT_OK = (
2324
qw(sign verify),
@@ -534,7 +535,7 @@ sub _digest_object {
534535
my($algorithm) = @_;
535536

536537
# Avoid loading Digest::* from relative paths in @INC.
537-
local @INC = grep { m{^[\\/]} } @INC;
538+
local @INC = grep { File::Spec->file_name_is_absolute($_) } @INC;
538539

539540
# Constrain algorithm name to be of form ABC123.
540541
my ($base, $variant) = ($algorithm =~ /^([_a-zA-Z]+)([0-9]+)$/g)

0 commit comments

Comments
 (0)