[git] GCRYPT - branch, LIBGCRYPT-1-5-BRANCH, updated. libgcrypt-1.5.0-16-gd30c864
by Werner Koch
cvs at cvs.gnupg.org
Wed Nov 21 12:15:13 CET 2012
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, LIBGCRYPT-1-5-BRANCH has been updated
via d30c86465fef9531766fd7c124a5d87d7645850e (commit)
from 322a9b53e6f7e71aca46a45b12b036ecf46be8ee (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 d30c86465fef9531766fd7c124a5d87d7645850e
Author: Werner Koch <wk at gnupg.org>
Date: Wed Nov 21 10:35:28 2012 +0100
Fix segv with AES-NI on some platforms.
* cipher/rijndael.c (RIJNDAEL_context): Align on 16 bytes.
--
The trigger for this problem is the allocation of the context in the
selftest functions. The other code paths use a 16 byte alignment
anyway by means of the allocation of the context in cipher.c
Thanks to Gentoo hacker Joakim Tjernlund for figuring out the reason
of this problem.
GnuPG-bug-id: 1452
diff --git a/cipher/rijndael.c b/cipher/rijndael.c
index 2df8ea9..92fa31d 100644
--- a/cipher/rijndael.c
+++ b/cipher/rijndael.c
@@ -124,7 +124,7 @@ typedef struct
#ifdef USE_AESNI
int use_aesni; /* AES-NI shall be used. */
#endif /*USE_AESNI*/
-} RIJNDAEL_context;
+} RIJNDAEL_context ATTR_ALIGNED_16;
/* Macros defining alias for the keyschedules. */
#define keyschenc u1.keyschedule
-----------------------------------------------------------------------
Summary of changes:
cipher/rijndael.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
hooks/post-receive
--
The GNU crypto library
http://git.gnupg.org
More information about the Gnupg-commits
mailing list