RFR: 8339280: jarsigner -verify performs cross-checking between CEN and LOC [v4]
Hai-May Chao
hchao at openjdk.org
Fri Mar 14 00:45:11 UTC 2025
> The jarsigner -verify command currently performs verification by reading from JarFile to navigate the central directory (CEN) headers. It is now enhanced to include cross-validation of entries between JarFile (CEN-based) and JarInputStream (stream-based) representations of the JAR. It emits earnings when detecting discrepancies between a JAR file’s central directory and its local file entries.
Hai-May Chao has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 25 commits:
- changes merged
- Merge
- Revert changes
- Update with review comment
- Remove unneeded compressed large jar test
- Test on large entry
- Add cross checking in jarsigner instead of accessing ZIP internals
- Revert changes to Resources.java
- Revert changes to Main.java
- Revert changes to Test.java
- ... and 15 more: https://git.openjdk.org/jdk/compare/04544064...ad61b35b
-------------
Changes: https://git.openjdk.org/jdk/pull/23532/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23532&range=03
Stats: 137 lines in 2 files changed: 136 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/23532.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23532/head:pull/23532
PR: https://git.openjdk.org/jdk/pull/23532
More information about the security-dev
mailing list