[git] GCRYPT - branch, master, updated. libgcrypt-1.7.1-7-g7a7f7c1

by Werner Koch cvs at cvs.gnupg.org
Sat Jun 25 20:54:34 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  7a7f7c147f888367dfee6093d26bfeaf750efc3a (commit)
      from  1feb01940062a74c27230434fc3babdddca8caf4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7a7f7c147f888367dfee6093d26bfeaf750efc3a
Author: Werner Koch <wk at gnupg.org>
Date:   Sat Jun 25 20:52:47 2016 +0200

    ecc: Fix memory leak.
    
    * cipher/ecc.c (ecc_check_secret_key): Do not init point if already
    set.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/cipher/ecc.c b/cipher/ecc.c
index 8af0d14..e25bf09 100644
--- a/cipher/ecc.c
+++ b/cipher/ecc.c
@@ -790,7 +790,8 @@ ecc_check_secret_key (gcry_sexp_t keyparms)
     }
   if (mpi_g)
     {
-      point_init (&sk.E.G);
+      if (!sk.E.G.x)
+        point_init (&sk.E.G);
       rc = _gcry_ecc_os2ec (&sk.E.G, mpi_g);
       if (rc)
         goto leave;

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

Summary of changes:
 cipher/ecc.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list