Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Archive-Zip CPAN distribution.

Report information
The Basics
Id:
42170
Status:
new
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
smujohnson [...] gmail.com
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Bug: Archive::Zip extract is not reporting a CRC error
Date: Mon, 5 Jan 2009 15:28:49 -0800
To: bug-Archive-Zip@rt.cpan.org
From: "smu johnson" <smujohnson@gmail.com>
Dear Archive::Zip developer,

Huge files with CRC errors are not being reported.

Perl code:

        foreach my $m ($zip->memberNames) {
                ##
                ## as long as it ends in csv
                if ($m =~ /\.csv$/i) { # case insensitive
                        print "$m";
                        $AZ_level = $zip->extractMember($m, "./$m");
                        print " AZ errorlevel: $AZ_level\n";
                        $filename = $m;
                        last;
                }
        }

Show quoted text
================================================
A zip was extracted with Archive::Zip.  Perl outputted code (only the first line below, using code above)

BTTITLE01052009.CSV AZ errorlevel: 0

-rw-r--r-- 1 pubstock pubstock 1351048136 Jan  5 06:05 BTTITLE01052009.CSV

sjohnson@web1:/home/pubstock/tmp$ md5sum BTTITLE01052009.CSV
b8f5c20cf27b77315c168890dff84747  BTTITLE01052009.CSV
Show quoted text
================================================


Show quoted text
================================================
This file was extracted with "unzip" in Linux

Archive:  /home/pubstock/interm/BAK-1231161290-0.tmp
    testing: BTTITLE01052009.CSV      bad CRC eeaece2e  (should be 0604b2be)
At least one error was detected in /home/pubstock/interm/BAK-1231161290-0.tmp.

sjohnson@web1:/tmp/sjohnson/huge$ md5sum BTTITLE01052009.CSV
b8f5c20cf27b77315c168890dff84747  BTTITLE01052009.CSV

sjohnson@web1:/tmp/sjohnson/huge$ crc BTTITLE01052009.CSV
EEAECE2E  BTTITLE01052009.CSV
Show quoted text
================================================

Note:  MD5SUMs both match (good).  unzip claims a CRC error, Archive::Zip does not.

Conclusion:  Archive::Zip has a bug with CRC checking with huge files?  (.zip is 300 megs, extracted file, ~1.3 gigs)

Any thoughts?  Thank you.


--
smu johnson <smujohnson@gmail.com>



This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.