-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b01
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2222498 | 8 | Valerie Peng | P4 | Closed | Fixed | b86 |
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
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
- backported by
-
JDK-2222498 PKCS11 minor issues in native code
-
- Closed
-