<div dir="ltr">Hi,<br><div><br></div><div>While writing various ZIP related tests, I noticed a discrepancy in the treatment of invalid CRC values:</div><div><br></div><div>While ZipInputStream rejects invalid CRC values when consuming streams, ZipFile and ZipFileSystem do not.</div><div><br></div><div>While this is inconsistent, it is perhaps not a bug we want to fix?</div><div><br></div><div>In any case, it could perhaps be good to have better test coverage in this area. Here's a test which validates the current behaviour of ZIS, ZF and ZFS:</div><div><br></div><div><a href="https://github.com/openjdk/jdk/compare/master...eirbjo:jdk:zip-invalid-crc">https://github.com/openjdk/jdk/compare/master...eirbjo:jdk:zip-invalid-crc</a><br></div><div><br></div><div>Any thoughts?</div><div><br></div><div>Thanks,</div><div>Eirik.</div><div><br></div><div> <br></div></div>