Hi,

While writing various ZIP related tests, I noticed a discrepancy in the
treatment of invalid CRC values:

While ZipInputStream rejects invalid CRC values when consuming streams,
ZipFile and ZipFileSystem do not.

While this is inconsistent, it is perhaps not a bug we want to fix?

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:

https://github.com/openjdk/jdk/compare/master...eirbjo:jdk:zip-invalid-crc

Any thoughts?

Thanks,
Eirik.

Reply via email to