RFR: 8284548: Invalid XPath expression causes StringIndexOutOfBoundsException
Naoto Sato
naoto at openjdk.java.net
Wed Apr 20 20:22:35 UTC 2022
On Wed, 20 Apr 2022 20:08:01 GMT, Joe Wang <joehw at openjdk.org> wrote:
> Patch note:
>
> A previous patch had a bug that missed the boundary check, that will cause StringIndexOutOfBoundsException to be thrown instead of XPathExpressionException as expected.
>
> Fix: the fix is to check the boundaries of the parameter "index". Objects.checkIndex is removed as it's redundant.
Marked as reviewed by naoto (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/8323
More information about the core-libs-dev
mailing list