harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Thorne (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-6384) Jar decoding breaks upon encountering a Z_SYNC_FLUSH block
Date Wed, 14 Jul 2010 10:41:49 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12888281#action_12888281
] 

Colin Thorne commented on HARMONY-6384:
---------------------------------------

I have added my patch for this bug which fixes the behaviour for the test case already attached
to this bug. I have also managed to find a way of creating a jar file which reproduces the
problem on Harmony (using a modified version of the Harmony archive classes to expose the
z_sync_flush flag) but I need to try out other behaviour of the RI to check my understanding
of the possible format of the jar files. 
Essentially, in the z_sync_flush case: the offset stored in the ZIP 'end of central directory
record' does not point to the beginning of the central directory, but instead points to the
beginning of the z_sync_flush block that preceeds the beginning of the central directory.

> Jar decoding breaks upon encountering a Z_SYNC_FLUSH block
> ----------------------------------------------------------
>
>                 Key: HARMONY-6384
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6384
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: SVN Revision: 883501
>            Reporter: Jesse Wilson
>            Priority: Minor
>         Attachments: hyts_flushed.jar, JarDecodingBug.patch, JarDecodingFix.patch
>
>
> The "new JarFile()" constructor throws an exception when decoding a JarFile that contains
a Z_SYNC_FLUSH block. The RI is able to decode such files without problem. 
> See also http://markmail.org/thread/7xyxtpri3clhu3hv

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message