JDK7's java.util.zip breakage with very large files

Xueming Shen xueming.shen at oracle.com
Thu Feb 7 20:59:49 UTC 2013


Sure, I do have the "zipinfo" there:-) try

java  com.sun.nio.zipfs.ZipInfo FOO.jar

Cool, right :-)

-Sherman

On 02/07/2013 12:36 PM, Kumar Srinivasan wrote:
> On 2/7/2013 12:23 PM, Xueming Shen wrote:
>> There is difference between doing
>>
>> "jar xvf data.jar data"
>>
>> and
>>
>> "jar xvf data.jar"
>
> you can also use zipinfo -v to check CEN entries.
>
> Kumar
>
>>
>> If the previous one works, it means the zip file should have
>> the healthy end table there (it goes down to end->cen->
>> loc->data file). The later goes from the sequential looking
>> up from the beginning, so it only looks into the "loc" table,
>> it may extract the file out even there is no cen and end tables.
>>
>> I thought you just did "java xvf data.jar" in your previous
>> email.
>>
>> -Sherman
>>
>>
>> On 02/07/2013 12:15 PM, Alexander Sack wrote:
>>> On Thu, Feb 7, 2013 at 3:11 PM, Xueming Shen<xueming.shen at oracle.com>  wrote:
>>>> Alexander,
>>>>
>>>> Can  you do "jar xvf data.jar data" to extract the file?
>>>>
>>>>
>>> As per original email, yes I can. Also md5sum checks out.
>>>
>>> But large files result in a malformed zip file.
>>>
>>> -aps
>>
>




More information about the core-libs-dev mailing list