Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7155720

PKCS11 minor issues in native code

XMLWordPrintable

    • b01
    • generic
    • generic

        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

              valeriep Valerie Peng
              ahgross Andrew Gross
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: