RFR: 8366807: JNI exception pending in Java_sun_security_pkcs11_wrapper_PKCS11_initializeLibrary of p11_general.c:106 [v2]

duke duke at openjdk.org
Thu Jan 15 18:54:18 UTC 2026


On Wed, 7 Jan 2026 22:31:24 GMT, Koushik Muthukrishnan Thirupattur <duke at openjdk.org> 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.
>
> Koushik Muthukrishnan Thirupattur has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8366807: Updated Copyright

@koushikthirupattur 
Your change (at version e44edfa5c9385858edf74878d08c1be6202f163a) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/28799#issuecomment-3756366874


More information about the security-dev mailing list