redhotpenguin / perl-Archive-Zip

Archive::Zip as seen at https://metacpan.org/pod/Archive::Zip
Other
15 stars 44 forks source link

"subclass Responsibility" error #13

Closed AGWA closed 9 years ago

AGWA commented 9 years ago

The following program:

use Archive::Zip;
my $zip = Archive::Zip->new('jruby.jar');
$zip->writeToFileNamed('/dev/null');

fails with the following error when used with this Zip archive:

subclass Responsibility
 at .../lib/Archive/Zip/Archive.pm line 420

The bug was originally introduced by commit 815094f5acc74373897331f729a8fa3a67c45213, at which point the error was "CRC or size mismatch while skipping data descriptor."

The code in question was further modified by ecf3d5ecc0b7d651325f25a7c657d50b958d5175, at which point the error became the one shown above.

Note that this Zip archive contains a file, org/joda/time/format/messages_en.properties, which has an uncompressed sized of 0, but a compressed size of 2. I suspect this may have something to do with the problem, though unfortunately I was unable to reproduce this with a minimal test case.

Let me know if you could use any more information. Thanks!

AGWA commented 9 years ago

This was fixed in #16.