Skip to content
Snippets Groups Projects
Commit 8e108984 authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- fix: "Out of memory!" error (replaced CRC32 module, Digest::CRC has memory...

- fix: "Out of memory!" error (replaced CRC32 module, Digest::CRC has memory issues, details https://rt.cpan.org/Public/Bug/Display.html?id=88014)
parent 1c50ed62
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ use XML::LibXML;
use Time::Progress;
use XML::LibXML::XPathContext;
use Getopt::Long::Complete qw(GetOptionsWithCompletion);
use Digest::CRC;
use Crypt::Checksum::CRC32;
use Digest::MD5;
use Digest::SHA;
use Bloom::Filter;
......@@ -263,7 +263,7 @@ sub check_file_fixities($$) {
my $fileobj = shift;
my $result = shift;
my %digest_mapping = ( # maps Rosetta fixity algorithm names to Perl fixity algorithm names
'CRC32' => Digest::CRC->new(type=>"crc32"),
'CRC32' => Crypt::Checksum::CRC32->new(),
'MD5' => Digest::MD5->new(),
'SHA1' => Digest::SHA->new(1),
'SHA256' => Digest::SHA->new(256),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment