RFR: 8328874: Class::forName0 should validate the class name length early [v4]
Guanqiang Han
ghan at openjdk.org
Wed Aug 20 05:10:39 UTC 2025
On Tue, 19 Aug 2025 16:05:49 GMT, Chen Liang <liach at openjdk.org> wrote:
>> Guanqiang Han has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update Class.java
>>
>> correct length of class name
>
> There is a `jdk.internal.util.ModifiedUtf::utfLen` that you can use instead of writing your own function.
@liach @dholmes-ora @rose00 @RogerRiggs Thanks for all the valuable feedback! I’ve updated the changes accordingly—please take another look when you have time.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26802#issuecomment-3204209083
More information about the core-libs-dev
mailing list