From 8e108984459d41a593bad9f6507dc3b57a34a126 Mon Sep 17 00:00:00 2001
From: Jens Steidl <Jens.Steidl@slub-dresden.de>
Date: Tue, 18 Jan 2022 18:22:17 +0100
Subject: [PATCH] - fix: "Out of memory!" error (replaced CRC32 module,
 Digest::CRC has memory issues, details
 https://rt.cpan.org/Public/Bug/Display.html?id=88014)

---
 deep_fixitycheck.pl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/deep_fixitycheck.pl b/deep_fixitycheck.pl
index 80b1096..a6bd345 100644
--- a/deep_fixitycheck.pl
+++ b/deep_fixitycheck.pl
@@ -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),
-- 
GitLab