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

Xueming Shen xueming.shen at oracle.com
Thu Feb 7 20:23:38 UTC 2013

There is difference between doing

"jar xvf data.jar data"


"jar xvf data.jar"

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


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