6987652: VM crashed in sun.security.mscapi.RSAKeyPairGenerator.generateRSAKeyPair(...)
authorvinnie
Mon, 09 May 2011 15:58:25 +0100
changeset 9674 5d8476e6e47a
parent 9673 595a61b6e5cc
child 9675 5aaa241a1c44
6987652: VM crashed in sun.security.mscapi.RSAKeyPairGenerator.generateRSAKeyPair(...) Reviewed-by: alanb
jdk/src/windows/native/sun/security/mscapi/security.cpp
--- a/jdk/src/windows/native/sun/security/mscapi/security.cpp	Mon May 09 01:57:28 2011 -0700
+++ b/jdk/src/windows/native/sun/security/mscapi/security.cpp	Mon May 09 15:58:25 2011 +0100
@@ -705,7 +705,7 @@
     HCRYPTPROV hCryptProv = NULL;
     HCRYPTKEY hKeyPair;
     DWORD dwFlags = (keySize << 16) | CRYPT_EXPORTABLE;
-    jobject keypair;
+    jobject keypair = NULL;
     const char* pszKeyContainerName = NULL; // UUID
 
     __try