[jdk17u-dev] RFR: 8292043: Incorrect decoding near EOF for stateful decoders like UTF-16
duke
duke at openjdk.org
Wed Nov 19 15:49:47 UTC 2025
On Wed, 12 Nov 2025 23:04:27 GMT, Roland Mesde <duke at openjdk.org> wrote:
> Backporting JDK-8292043: Incorrect decoding near EOF for stateful decoders like UTF-16. Fixes incorrect state handling with EOF in StreamDecoder. There's a reset() call to the decoder seeing the EOF before the last decode() operation to handle the state correctly. Removing the call should not affect other cases because reset() is issued down the execution.
>
> Also adds a new test. Ran GHA Sanity Checks (passed) and new test (passed). Patch is clean.
@rm-gh-8
Your change (at version 62bbf4c3e774a3c88d63ae98efe028fc142d550c) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk17u-dev/pull/4177#issuecomment-3553422566
More information about the jdk-updates-dev
mailing list