libp11 icon indicating copy to clipboard operation
libp11 copied to clipboard

Missing error handling in pkcs11_object_from_template

Open ulrichb opened this issue 2 years ago • 0 comments

I'm talking about the following two lines:

https://github.com/OpenSC/libp11/blob/bb8b8389f39e61ee6508db86c1341495c06f9c9a/src/p11_key.c#L161-L162

Here a potential CK_INVALID_HANDLE from pkcs11_handle_from_template() is not handled.

=> We enter the following pkcs11_object_from_handle() with CK_INVALID_HANDLE.

ulrichb avatar Aug 10 '22 09:08 ulrichb