OOM condition not handled in PCSS11

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 7
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: