[jdk21u-dev] Withdrawn: 8321156: Improve the handling of invalid UTF-8 byte sequences for ZipInputStream::getNextEntry and ZipFile::getComment

Roland Mesde duke at openjdk.org
Tue Dec 2 16:56:11 UTC 2025


On Mon, 17 Nov 2025 17:46:08 GMT, Roland Mesde <duke at openjdk.org> wrote:

> 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).

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jdk21u-dev/pull/2480


More information about the jdk-updates-dev mailing list