Bug#654899: libarchive-zip-perl: jh_manifest from javahelper creates corrupt archives (jars)
Ludovico Cavedon
cavedon at debian.org
Tue Feb 21 07:31:28 UTC 2012
Hi,
the is still present in the latest version 1.30-5
How to reproduce it:
Use this zip file
http://www.cs.ucsb.edu/~cavedon/test.zip
which contains no errors:
> $ unzip -t test.zip
> [...]
> No errors detected in compressed data of test.zip.
Run the following code:
===================
use Archive::Zip;
my $zip = Archive::Zip->new();
$zip->read("test.zip");
$zip->removeMember( 'META-INF/MANIFEST.MF' );
$mem = $zip->addString("", 'META-INF/MANIFEST.MF');
$mem->desiredCompressionMethod(COMPRESSION_DEFLATED);
$zip->writeToFileNamed('xxx.zip');
===================
And the xxx.zip fil is corrupted:
> $ unzip -t xxx.zip
> [...]
> testing: META-INF/ bad CRC 1a6cd7b3 (should be 00000000)
> [...]
Thanks,
Ludovico
More information about the pkg-perl-maintainers
mailing list