RFR: 8328874: Class::forName0 should validate the class name length early [v15]
Roger Riggs
rriggs at openjdk.org
Mon Sep 8 16:54:18 UTC 2025
On Sun, 7 Sep 2025 14:50:56 GMT, Guanqiang Han <ghan at openjdk.org> wrote:
>> Validate class name length immediately after GetStringUTFLength() in Class.forName0. This prevents potential issues caused by overly long class names before they reach later code that would reject them, throwing ClassNotFoundException early.
>
> Guanqiang Han has updated the pull request incrementally with one additional commit since the last revision:
>
> Use a different native method for testNative, since the implementation of forName has changed.
Thanks for the updates and expanded tests.
-------------
Marked as reviewed by rriggs (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/26802#pullrequestreview-3197343416
More information about the core-libs-dev
mailing list