Adding a cert or key from a pem file causes a crash: PK11_SETATTRS( attrs, CKA_CLASS, &objClass, sizeof(objClass) ); attrs++; PK11_SETATTRS( attrs, CKA_TOKEN, &cktrue, sizeof(CK_BBOOL) ); attrs++; PK11_SETATTRS( attrs, CKA_LABEL, (unsigned char *)filename, strlen(filename)+1 ); attrs++; if ( isca ) { PK11_SETATTRS( attrs, CKA_TRUST, &cktrue, sizeof(CK_BBOOL) ); attrs++; } else { PK11_SETATTRS( attrs, CKA_TRUST, &ckfalse, sizeof(CK_BBOOL) ); attrs++; } /* This loads the certificate in our PEM module into the appropriate * slot. */ rv = PK11_CreateGenericObject( slot, theTemplate, 4, PR_FALSE /* isPerm */ ); e.g. if filename is the name of a directory or other non-file (device, socket, etc.), pemnss will crash.
Is this a duplicate of bug 642433 ?
*** This bug has been marked as a duplicate of bug 642433 ***