[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
Tue Dec 2 16:56:10 UTC 2025


On Thu, 20 Nov 2025 16:24:42 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).
>
> Roland Mesde has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Revert Javadoc Changes

Withdrawing and cancelling PR.

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

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/2480#issuecomment-3603029022


More information about the jdk-updates-dev mailing list