[openssl-commits] [openssl] master update

Emilia Kasper emilia at openssl.org
Wed Apr 15 12:25:08 UTC 2015


The branch master has been updated
       via  68249414405500660578b337f1c8dd5dd4bb5bcc (commit)
      from  5e0a80c1c9b2b06c2d203ad89778ce1b98e0b5ad (commit)


- Log -----------------------------------------------------------------
commit 68249414405500660578b337f1c8dd5dd4bb5bcc
Author: Emilia Kasper <emilia at openssl.org>
Date:   Tue Apr 14 17:42:42 2015 +0200

    Initialize variable
    
    newsig may be used (freed) uninitialized on a malloc error.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 engines/ccgost/gost_sign.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/engines/ccgost/gost_sign.c b/engines/ccgost/gost_sign.c
index fad2004..1d7ed86 100644
--- a/engines/ccgost/gost_sign.c
+++ b/engines/ccgost/gost_sign.c
@@ -54,7 +54,7 @@ void dump_dsa_sig(const char *message, DSA_SIG *sig)
 DSA_SIG *gost_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
 {
     BIGNUM *k = NULL, *tmp = NULL, *tmp2 = NULL;
-    DSA_SIG *newsig, *ret = NULL;
+    DSA_SIG *newsig = NULL, *ret = NULL;
     BIGNUM *md = hashsum2bn(dgst);
     /* check if H(M) mod q is zero */
     BN_CTX *ctx = BN_CTX_new();


More information about the openssl-commits mailing list