A handful of minor issues in the native code for the pkcs11 provider. jdk/src/share/native/sun/security/pkcs11/wrapper/p11_convert.c: 689-690 free(ckParam.pReturnedKeyMaterial); free(ckParam.pReturnedKeyMaterial->pIVClient); free() order should be reversed to avoid use after free. jdk/src/solaris/native/sun/security/pkcs11/wrapper/p11_md.c 1) line 109: malloc return value not checked 2) line 139: ditto 3) C_GetFunctionList could be used w/o initialization, should set = NULL in declaration
|