Duplicate :
|
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.
|