RFR: 8282077: PKCS11 provider C_sign() impl should handle CKR_BUFFER_TOO_SMALL error [v2]
Mikael Vidstedt
mikael at openjdk.java.net
Sat Feb 19 00:11:45 UTC 2022
On Sat, 19 Feb 2022 00:07:34 GMT, Valerie Peng <valeriep at openjdk.org> wrote:
>> Could someone please help review this trivial change? This is to add an error handling for the potential CKR_BUFFER_TOO_SMALL error when calling C_Sign(). Since none of the supported signature algorithms trigger this error as the default buffer size is large enough, this is more for consistency sake. No new regression test for this and thus the @noreg-hard label.
>>
>> Thanks,
>> Valerie
>
> Valerie Peng has updated the pull request incrementally with one additional commit since the last revision:
>
> free allocated 'ckpData' upon OOM.
Marked as reviewed by mikael (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/7540
More information about the security-dev
mailing list