RFR: 8321802: (zipfs) Add validation of incorrect LOC signature in ZipFileSystem [v2]

Eirik Bjorsnos duke at openjdk.org
Tue Dec 12 11:59:36 UTC 2023


> Please review this PR which adds validation of incorrect LOC signatures in `ZipFileSystem`.
> 
> `ZipFile` already rejects the case where the  offset pointed to from the CEN header does not start with the expected LOC signature. It makes sense to add this check to `ZipFileSystem` as well.

Eirik Bjorsnos has updated the pull request incrementally with one additional commit since the last revision:

  Use uppercase LOC in ZipException messages

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17059/files
  - new: https://git.openjdk.org/jdk/pull/17059/files/bd18ce34..c7ca450e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17059&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17059&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/17059.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17059/head:pull/17059

PR: https://git.openjdk.org/jdk/pull/17059


More information about the core-libs-dev mailing list