commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (COMPRESS-380) Support for ENHANCED_DEFLATED (Deflate64) in ZIP files
Date Thu, 28 Dec 2017 10:26:00 GMT

    [ https://issues.apache.org/jira/browse/COMPRESS-380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16305302#comment-16305302
] 

Dawid Weiss edited comment on COMPRESS-380 at 12/28/17 10:25 AM:
-----------------------------------------------------------------

These (archive.zip, archive64.zip, input2) attached streams aren't binary-identical, perhaps
it'll be of greater help. I generated a random sequence and folded it around other random
sequence. The input is also attached for reference.

{code}
rm -f archive*.zip 

dd if=/dev/urandom bs=1024 count=1 2>/dev/null > input1

cat input1 > input2
dd if=/dev/urandom bs=1024 count=1 2>/dev/null >> input2
cat input1 >> input2
rm input1

7za a -mm=deflate64 archive64.zip input2
7za a -mm=deflate archive.zip input2

ls -l archive*.zip
{code}


was (Author: dweiss):
These streams aren't binary-identical. I generated a random sequence and folded it around
other random sequence. The input is also attached for reference.

{code}
rm -f archive*.zip 

dd if=/dev/urandom bs=1024 count=1 2>/dev/null > input1

cat input1 > input2
dd if=/dev/urandom bs=1024 count=1 2>/dev/null >> input2
cat input1 >> input2
rm input1

7za a -mm=deflate64 archive64.zip input2
7za a -mm=deflate archive.zip input2

ls -l archive*.zip
{code}

> Support for ENHANCED_DEFLATED (Deflate64) in ZIP files
> ------------------------------------------------------
>
>                 Key: COMPRESS-380
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-380
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Dawid Weiss
>             Fix For: 1.16
>
>         Attachments: archive-deflate.zip, archive-deflate64.zip, archive.zip, archive64.zip,
compress-380.diff, hello.world, input2
>
>
> Some of the (large) ZIP files we try to process currently will throw this:
> {code}
> UnsupportedZipFeatureException: unsupported feature method 'ENHANCED_DEFLATED' 
> {code}
> which is a bummer since JDK's implementation also doesn't support Deflate64. This seems
to be PKWare's extensions, although code to decrypt it exists in zlib (and is appropriately
licensed, I believe).
> https://github.com/madler/zlib/tree/master/contrib/infback9



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message