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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

by Werner Koch
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 <[hidden email]>
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 <[hidden email]>

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
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gnupg-commits


_______________________________________________
Gcrypt-devel mailing list
[hidden email]
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
Loading...