[jdk21u-dev] RFR: 8320570: NegativeArraySizeException decoding >1G UTF8 bytes with non-ascii characters
Sonia Zaldana Calles
szaldana at openjdk.org
Wed Mar 6 19:36:59 UTC 2024
On Tue, 5 Mar 2024 19:02:47 GMT, Sonia Zaldana Calles <szaldana at openjdk.org> wrote:
> Hi all,
>
> This pull request contains a backport of commit [82796bdebbf56b98ec97a6d572ed68c2842f60c6](https://github.com/openjdk/jdk/commit/82796bdebbf56b98ec97a6d572ed68c2842f60c6) from the [openjdk/jdk](https://github.com/openjdk/jdk) repository.
>
> Note, patch is not clean.
>
> The only difference between the original commit and this backport is the variable name ```utf16``` [(original commit)](https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/String.java#L595) vs ```buf``` [(jdk21u state)](https://github.com/openjdk/jdk21u-dev/blob/master/src/java.base/share/classes/java/lang/String.java#L577). I coalesced those differences by keeping the ```buf``` variable name for jdk21u.
>
>
>
> Testing: Was able to verify behaviour with reproducer and added test case passes.
>
> Thanks!
GHA failure: Unrelated Risk-V build issue.
-------------
PR Comment: https://git.openjdk.org/jdk21u-dev/pull/332#issuecomment-1980995778
More information about the jdk-updates-dev
mailing list