[git] GCRYPT - branch, master, updated. libgcrypt-1.8.1-11-gdb3a8d6

by NIIBE Yutaka cvs at cvs.gnupg.org
Tue Aug 29 03:36:15 CEST 2017


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  db3a8d6890fb4a6436e082b49378c0bd891563ca (commit)
      from  1d5f726668b9cc32d6bb601f2329987058146c6c (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 db3a8d6890fb4a6436e082b49378c0bd891563ca
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Tue Aug 29 10:33:08 2017 +0900

    ecc: Fix scratch MPI.
    
    * mpi/ec.c (ec_p_init): Check if scratch MPI is allocated.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/mpi/ec.c b/mpi/ec.c
index 88e2fab..ca293ca 100644
--- a/mpi/ec.c
+++ b/mpi/ec.c
@@ -647,7 +647,7 @@ ec_p_init (mpi_ec_t ctx, enum gcry_mpi_ec_models model,
           mpi_resize (ctx->b, ctx->p->nlimbs);
           ctx->b->nlimbs = ctx->p->nlimbs;
 
-          for (i=0; i< DIM(ctx->t.scratch); i++)
+          for (i=0; i< DIM(ctx->t.scratch) && ctx->t.scratch[i]; i++)
             ctx->t.scratch[i]->nlimbs = ctx->p->nlimbs;
 
           break;

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

Summary of changes:
 mpi/ec.c | 2 +-
 1 file changed, 1 insertion(+), 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