[jdk21u-dev] Integrated: 8320570: NegativeArraySizeException decoding >1G UTF8 bytes with non-ascii characters

Sonia Zaldana Calles szaldana at openjdk.org
Mon Mar 11 22:25:23 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!

This pull request has now been integrated.

Changeset: 779204c9
Author:    Sonia Zaldana Calles <szaldana at openjdk.org>
Committer: Paul Hohensee <phh at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/779204c941225f76aa85299bacfae59deccef082
Stats:     82 lines in 2 files changed: 75 ins; 0 del; 7 mod

8320570: NegativeArraySizeException decoding >1G UTF8 bytes with non-ascii characters

Reviewed-by: phh
Backport-of: 82796bdebbf56b98ec97a6d572ed68c2842f60c6

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

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


More information about the jdk-updates-dev mailing list