RFR: 8367024: JNI exception pending in Java_sun_security_pkcs11_wrapper_PKCS11_C_1DeriveKey of p11_keymgmt.c:950 [v3]
duke
duke at openjdk.org
Thu Jan 15 18:54:21 UTC 2026
On Wed, 14 Jan 2026 03:48:01 GMT, Koushik Muthukrishnan Thirupattur <duke at openjdk.org> wrote:
>> The method ckAssertReturnValueOK will invoke ckAssertReturnValueOK2 which makes multiple calls to JNI functions, such as FindClass or GetMethodID. These calls would be unsafe as there may be a pending exception at this time.
>> 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:
>
> 8367024: Addressing review comments
@koushikthirupattur
Your change (at version d65d64a508bc53df87b50864e19ddb6707a72806) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29054#issuecomment-3756366339
More information about the security-dev
mailing list