RFR: 8354799: ZipInputStream doesn't verify CRC for empty ZipEntry

Lance Andersen lancea at openjdk.org
Thu May 8 13:46:56 UTC 2025


On Thu, 8 May 2025 13:29:36 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> > I'll run some experiments and see what it shows up.
> 
> Thanks as that will help inform as to whether this will need a compatibility knob.

The crc is calculated as part of the write of the entry and I have not seen any cases, where the CRC is not 0 for a directory/ 0-length file

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25116#issuecomment-2863124377


More information about the core-libs-dev mailing list