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

OOM condition not handled in PCSS11

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 7
    • security-libs
    • None

      Specjvm2007 becnhmark crashes in pkcs code. Crash happens because function
      jobject ckSlotInfoPtrToJSlotInfo(JNIEnv *env, const CK_SLOT_INFO_PTR ckpSlotInfo)
      has code:
      jSlotInfoObject = (*env)->AllocObject(env, jSlotInfoClass);
      ...
      (*env)->SetObjectField(env, jSlotInfoObject, jFieldID, jTempVersion);

      and it does no check for pending OOME and null, so when no memory available
      whole application crashes.

            valeriep Valerie Peng
            nigottiorcl Nikolay Igotti (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: