On Fri, 29 Aug 2025 23:59:54 GMT, Justin Lu <j...@openjdk.org> wrote:
> This PR addresses a JCK test failure of an unexpected SIOOBE during > DecimalFormat parsing. During the char by char comparison in `matchAffix`, > the minimum of the length of the parsed String and the PP index + affix > length are iterated on. The parse position index needs to be checked to not > be negative to ensure that we do not index the String below 0. Taking the > minimum of those two previously mentioned values already guarantees that we > do not index the String above the length. This pull request has now been integrated. Changeset: becc35f2 Author: Justin Lu <j...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/becc35f28792a48fac488841d0bc43226d7c96a7 Stats: 72 lines in 2 files changed: 60 ins; 9 del; 3 mod 8366400: JCK test api/java_text/DecimalFormat/Parse.html fails after JDK-8363972 Reviewed-by: naoto ------------- PR: https://git.openjdk.org/jdk/pull/27014