On Wed, 20 Apr 2022 20:08:01 GMT, Joe Wang <jo...@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.

This pull request has now been integrated.

Changeset: 994f2e92
Author:    Joe Wang <jo...@openjdk.org>
URL:       
https://git.openjdk.java.net/jdk/commit/994f2e9271355bebf355279d0208c1d2054bab27
Stats:     86 lines in 2 files changed: 82 ins; 2 del; 2 mod

8284548: Invalid XPath expression causes StringIndexOutOfBoundsException

Reviewed-by: naoto, lancea

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

PR: https://git.openjdk.java.net/jdk/pull/8323

Reply via email to