[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdesupport/qca/plugins/qca-ossl
From:       Justin Karneges <infiniti () affinix ! com>
Date:       2009-07-15 17:13:43
Message-ID: 1247678023.130559.9913.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 997267 by infiniti:

make sure EVPKey does not use uninitialized data


 M  +2 -0      qca-ossl.cpp  


--- trunk/kdesupport/qca/plugins/qca-ossl/qca-ossl.cpp #997266:997267
@@ -1191,6 +1191,7 @@
 	{
 		pkey = from.pkey;
 		CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
+		raw_type = false;
 		state = Idle;
 	}
 
@@ -1235,6 +1236,7 @@
 		}
 		else
 		{
+			raw_type = false;
 			EVP_MD_CTX_init(&mdctx);
 			if(!EVP_VerifyInit_ex(&mdctx, type, NULL))
 				state = VerifyError;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic