RFR: 8366421: ModifiedUtf.utfLen may overflow for giant string [v7]

Guanqiang Han ghan at openjdk.org
Wed Sep 24 15:00:55 UTC 2025


On Wed, 24 Sep 2025 14:07:59 GMT, Chen Liang <liach at openjdk.org> wrote:

>> Guanqiang Han has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 10 additional commits since the last revision:
>> 
>>  - optimize test
>>  - Merge remote-tracking branch 'upstream/master' into 8366421
>>  - Update and rename TestUtfLen.java to ModifiedUtfTest.java
>>    
>>    rename test
>>  - Update TestUtfLen.java
>>    
>>    fix a small error
>>  - Update TestUtfLen.java
>>    
>>    fix format error
>>  - Update TestUtfLen.java
>>    
>>    Optimize regression test
>>  - Update TestUtfLen.java
>>    
>>    update regression test
>>  - add regression test
>>  - Merge remote-tracking branch 'upstream/master' into 8366421
>>  - Change return type of utfLen to long to prevent overflow
>
> I pulled and tested java/io, jdk/internal/util, jdk/classfile and things look fine, I assume this is good. My work at #27281 also depends on this change here.

@liach Thanks!

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

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


More information about the core-libs-dev mailing list