RFR: 8354799: ZipInputStream doesn't verify CRC for empty ZipEntry
Jaikiran Pai
jpai at openjdk.org
Thu May 8 12:12:05 UTC 2025
Can I please get a review of this change which addresses the issue noted in https://bugs.openjdk.org/browse/JDK-8354799?
`java.util.zip.ZipInputStream` when dealing with a `STORED` entry of zero size was missing a CRC check for that entry. The change in this PR addresses that and introduces a new jtreg test which reproduces the issue and verifies the fix.
tier testing is currently in progress.
-------------
Commit messages:
- 8354799: ZipInputStream doesn't verify CRC for empty ZipEntry
- 8354799: add test
Changes: https://git.openjdk.org/jdk/pull/25116/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25116&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8354799
Stats: 169 lines in 2 files changed: 168 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/25116.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25116/head:pull/25116
PR: https://git.openjdk.org/jdk/pull/25116
More information about the core-libs-dev
mailing list