[git] GCRYPT - branch, master, updated. libgcrypt-1.7.3-119-g61b0f52

by NIIBE Yutaka cvs at cvs.gnupg.org
Fri Jul 7 07:57:42 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  61b0f52c1cc85bf8c3cac9aba40e28682e4e1b8b (commit)
      from  66ed4d53789892def7b237756d8a0ab28df9d222 (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 61b0f52c1cc85bf8c3cac9aba40e28682e4e1b8b
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Jul 7 14:48:17 2017 +0900

    mpi: Minor fix of mpi_pow.
    
    * mpi/mpi-pow.c (_gcry_mpi_powm): Allocate size fix.
    
    --
    
    Same thing of 619ebae9847831f43314a95cc3180f4b329b4d3b applied.
    
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/mpi/mpi-pow.c b/mpi/mpi-pow.c
index 54f477b..62b4a80 100644
--- a/mpi/mpi-pow.c
+++ b/mpi/mpi-pow.c
@@ -552,8 +552,8 @@ _gcry_mpi_powm (gcry_mpi_t res,
     struct karatsuba_ctx karactx;
     mpi_ptr_t tp;
 
-    xp_nlimbs = msec? (2 * (msize + 1)):0;
-    xp = xp_marker = mpi_alloc_limb_space( 2 * (msize + 1), msec );
+    xp_nlimbs = msec? size:0;
+    xp = xp_marker = mpi_alloc_limb_space( size, msec );
 
     memset( &karactx, 0, sizeof karactx );
     negative_result = (ep[0] & 1) && bsign;

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

Summary of changes:
 mpi/mpi-pow.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


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