On Fri, 12 Dec 2025 18:46:52 GMT, Koushik Muthukrishnan Thirupattur <[email protected]> wrote:
> The method createLockObject will return NULL if any exception is thrown, but > there is no NULL verification in p11_general.c after the following line is > invoked > notifyListLock = createLockObject(env); > > There may be a pending exception when invoking prefetchFields(env, thisClass); > > So adding exception check to return immediately and do not call any further > JNI functions when there is exception pending. This pull request has now been integrated. Changeset: 25c834a8 Author: Koushik Thirupattur <[email protected]> Committer: Valerie Peng <[email protected]> URL: https://git.openjdk.org/jdk/commit/25c834a897ac0cac94942a019c9e377a53851f2c Stats: 7 lines in 1 file changed: 6 ins; 0 del; 1 mod 8366807: JNI exception pending in Java_sun_security_pkcs11_wrapper_PKCS11_initializeLibrary of p11_general.c:106 Reviewed-by: valeriep ------------- PR: https://git.openjdk.org/jdk/pull/28799
