[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-50-ga96974d
by Werner Koch
cvs at cvs.gnupg.org
Wed Nov 21 12:05:20 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, master has been updated
via a96974de734beb51a733a89b3283bcf7b433b54c (commit)
from 4b18e530f417d4af401a3fd721ad2a07e5310e3e (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 a96974de734beb51a733a89b3283bcf7b433b54c
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 d9a95cb..a2aedf0 100644
--- a/cipher/rijndael.c
+++ b/cipher/rijndael.c
@@ -126,7 +126,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