RFR: 8366421: ModifiedUtf.utfLen may overflow for giant string

David Holmes dholmes at openjdk.org
Fri Sep 19 04:57:19 UTC 2025


On Thu, 18 Sep 2025 12:59:48 GMT, Guanqiang Han <ghan at openjdk.org> wrote:

> Creating a string of Integer.MAX_VALUE/2 characters would require enormous memory

See test/hotspot/jtreg/runtime/jni/checked/TestLargeUTF8Length.java

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

PR Comment: https://git.openjdk.org/jdk/pull/27285#issuecomment-3310556040


More information about the core-libs-dev mailing list