RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v5]

Xue-Lei Andrew Fan xuelei at openjdk.java.net
Tue Apr 19 13:55:28 UTC 2022


On Tue, 19 Apr 2022 00:12:26 GMT, Brent Christian <bchristi at openjdk.org> wrote:

>> I think it is safer to add the check for 'hModule'.
>> 
>> 
>> -        if (moduleData != NULL) {
>> +        if (moduleData != NULL && moduleData->hModule != NULL) {
>
> That is very safe -- we already checked that `ckpNativeData != 0L`

Hm, I see now.

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

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



More information about the security-dev mailing list