[Announce] Libgcrypt 1.2.4 released

Alon Bar-Lev alon.barlev at gmail.com
Fri Feb 2 14:45:43 CET 2007


On Friday 02 February 2007, Werner Koch wrote:
>  * Other minor bug fixes.

Hello Werner,

I've sent you these in past, you did not include them.
The first one is for strict aliasing and the second one is for powerpc64.

Best Regards,
Alon Bar-Lev.

diff -urNp libgcrypt-1.2.3.org/cipher/ac.c libgcrypt-1.2.3/cipher/ac.c
--- libgcrypt-1.2.3.org/cipher/ac.c	2005-07-29 16:45:48.000000000 +0300
+++ libgcrypt-1.2.3/cipher/ac.c	2007-01-10 22:13:05.000000000 +0200
@@ -137,9 +137,11 @@ gcry_ac_data_copy_internal (gcry_ac_data
     data_new->data_n = data->data_n;
 
   if (! err)
-    /* Allocate space for named MPIs.  */
-    err = _gcry_malloc (sizeof (gcry_ac_mpi_t) * data->data_n, 0,
-			(void **) &data_new->data);
+    {
+      /* Allocate space for named MPIs.  */
+      err = _gcry_malloc (sizeof (gcry_ac_mpi_t) * data->data_n, 0, &p);
+      data_new->data = (gcry_ac_mpi_t *)p;
+    }
 
   if (! err)
     {
--- mpi/config.links.orig	2005-11-25 21:37:25.000000000 -0600
+++ mpi/config.links	2005-11-25 21:39:37.000000000 -0600
@@ -221,6 +221,11 @@
 	path="m68k/mc68020 m68k"
 	;;
 
+    powerpc64*-*-linux*)
+	mpi_sflags="-Wa,-mppc"
+	path="powerpc64"
+	;;
+
     powerpc*-*-linux*)
 	echo '/* configured for powerpc/ELF */' >>./mpi/asm-syntax.h
 	echo '#define ELF_SYNTAX'               >>./mpi/asm-syntax.h



More information about the Gcrypt-devel mailing list