[jdk21u-dev] RFR: 8321156: Improve the handling of invalid UTF-8 byte sequences for ZipInputStream::getNextEntry and ZipFile::getComment [v2]
Roland Mesde
duke at openjdk.org
Thu Nov 20 16:24:42 UTC 2025
> Backporting JDK-8321156: Improve the handling of invalid UTF-8 byte sequences for ZipInputStream::getNextEntry and ZipFile::getComment.
>
> Fixes invalid UTF-8 byte sequence handling in:
> - ZIP entry names within LOC file headers
> - ZIP file comments accessed through ZipFile::getComment
>
> Behavior change: ZipFile::getComment now returns null when invalid UTF-8 sequences are detected during byte-to-String conversion.
>
> Ran GHA Sanity Checks (passed) and related test (passed).
Roland Mesde has updated the pull request incrementally with one additional commit since the last revision:
Revert Javadoc Changes
-------------
Changes:
- all: https://git.openjdk.org/jdk21u-dev/pull/2480/files
- new: https://git.openjdk.org/jdk21u-dev/pull/2480/files/ff176bf6..ffd81272
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2480&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=2480&range=00-01
Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod
Patch: https://git.openjdk.org/jdk21u-dev/pull/2480.diff
Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/2480/head:pull/2480
PR: https://git.openjdk.org/jdk21u-dev/pull/2480
More information about the jdk-updates-dev
mailing list