Hello,

I remember to have seen a few ZIP64 compatibility bug fixed in the past.

But this one here is still open:

* [JDK-8298530] ZipInputStream.readEnd fails for certain ZIP64 archives with small files - Java Bug System (openjdk.org)

There seem to be unofficial patches. We seem to be bothered by the same problem.
(I need to get a test sample I can publish and also wait for the info where it is coming from.
It is a Microsoft Office XLSX file (they are ZIP archives), but it might not be created by office suite)

java.util.zip.ZipException: invalid entry size (expected 0 but got 1052 bytes)
at java.base/java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:399)
at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:198)
at java.base/java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:142)
at java.base/java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:120)

I can use the reproducer code from above Bug - modified with my sample file
- and it fails in the same way (with 17.0.10 and 17.0.11).

 

 

Reply via email to