Integrated: 8369995: Fix StringIndexOutOfBoundsException and implement extra logging and/or propagate errors in X509KeyManagerImpl
Mikhail Yankelevich
myankelevich at openjdk.org
Tue Oct 28 16:54:19 UTC 2025
On Thu, 16 Oct 2025 16:34:50 GMT, Mikhail Yankelevich <myankelevich at openjdk.org> wrote:
> In [JDK-8309667](https://bugs.openjdk.org/browse/JDK-8309667), there were issues with debugging due to no logging or throwing of errors by X509KeyManagerImpl::getEntry. [Line](https://github.com/openjdk/jdk/blob/6a4c2676a6378f573bd58d1bc32b57765d756291/src/java.base/share/classes/sun/security/ssl/X509KeyManagerImpl.java#L243-L245)
>
> Extra logging and error propagating should be implemented for the X509KeyManagerImpl.
>
> Additionally, dot checking logic has been changed, so no cases similar to `.A` will not trigger StringOutOfBounds exceptions.
>
> Thank you @djelinski for finding the issue and analysis.
This pull request has now been integrated.
Changeset: 5ebc2c72
Author: Mikhail Yankelevich <myankelevich at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/5ebc2c7212b21efe54c198f62f06e5edc68e8ec3
Stats: 401 lines in 3 files changed: 352 ins; 5 del; 44 mod
8369995: Fix StringIndexOutOfBoundsException and implement extra logging and/or propagate errors in X509KeyManagerImpl
Co-authored-by: Daniel Jeliński <djelinski at openjdk.org>
Reviewed-by: wetmore, djelinski, abarashev
-------------
PR: https://git.openjdk.org/jdk/pull/27851
More information about the security-dev
mailing list