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

Replace use of JNI_COMMIT mode with mode 0

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 17
    • 17
    • security-libs

    Description

      In file:

      ./jdk.crypto.cryptoki/share/native/libj2pkcs11/p11_crypt.c

      the JNI_COMMIT mode is used with ReleasePrimitiveArrayCritical. For strict portability this should be using mode 0 to ensure the underlying array is freed in case it was a copy (hotspot doesn't create a copy so this is an enhancement request not a bug, but mode 0 is more generally correct to use.)

      Attachments

        Issue Links

          Activity

            People

              valeriep Valerie Peng
              dholmes David Holmes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: