Bug 1033492 - WebCrypto: heap-buffer-overflow crash [@PK11_EnterSlotMonitor]. r=dkeeler

This commit is contained in:
Richard Barnes 2014-07-07 09:07:46 -04:00
parent 6f0296f842
commit d560c4258e

View File

@ -1397,7 +1397,7 @@ private:
default: return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
}
SECKEYPublicKey* pubKey;
SECKEYPublicKey* pubKey = nullptr;
mPrivateKey = PK11_GenerateKeyPair(slot.get(), mMechanism, param, &pubKey,
PR_FALSE, PR_FALSE, nullptr);
mPublicKey = pubKey;