<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html lang="de" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title></title><style type="text/css">html,body{background-color:#fff;color:#333;line-height:1.4;font-family:sans-serif,Arial,Verdana,Trebuchet MS;}</style></head><body><p>Hello Archie,</p>
<p>Archie Cobbs wrote on 09.05.2024 20:09 (GMT +02:00):</p>
<blockquote cite="mid:CANSoFxtKc=w9zy5TUFJDWpX7FhEVmzVVj1w9yZvV17F2ZUJbKA@mail.gmail.com">
<div dir="ltr">
<div class="gmail_quote">
<div>FWIW when I run the test case in that bug on the latest JDK 23 (jdk-23+21-110-g0a4eeeaa3c6), it does not report any exception.</div>
<div>So this bug may have gotten fixed by recent changes and just needs to be closed... ?</div>
</div>
</div>
</blockquote>
<div>Interesting observation, I can confirm this with 23+EA-22.</div>
<div> </div>
<div>However, for my corrupt sample ZIPs, it still fails:</div>
<div>So maybe there are two different causes.</div>
<div> </div>
<div>I made some progress in regards to identifying the source,<br>the file in question is probably generated with POI.</div>
<div> </div>
<div>I hope I can share a publishable file soon - keep you posted.</div>
<div> </div>
<div>C:\temp>Downloads\openjdk-23-ea+22_windows-x64_bin\jdk-23\bin\java LocalTest.java<br>Entry name: [Content_Types].xml<br>Entry compressed size: -1<br>Entry uncompressed size: -1<br>Stream failed at byte 1052<br>Post readEnd() compressed size: 315<br>Post readEnd() uncompressed size: 0<br>java.util.zip.ZipException: invalid entry size (expected 0 but got 1052 bytes)<br>        at java.base/java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:634)<br>        at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:415)<br>        at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:125)<br>        at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:211)<br>        at LocalTest.main(LocalTest.java:46) ...</div>
<div ></div></body></html>