Home GnuPG

Fix for strict aliasing rules.
dfb4673da8eeUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix for strict aliasing rules.

* cipher/rijndael.c (do_setkey, prepare_decryption): Use u32_a_t for
casting.

gcc 4.7.1 now show warnings for more functions. Like:

rijndael.c:412:19: warning: dereferencing type-punned pointer will
break strict-aliasing rules [-Wstrict-aliasing]

This fixes them using the may_alias attribute.

Details

Provenance
wernerAuthored on Nov 21 2012, 12:58 PM
Parents
rC3047795794eb: Do not detect AES-NI support if disabled by configure.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rCdfb4673da8ee: Fix for strict aliasing rules. (authored by Werner Koch <wk@gnupg.org>).Nov 21 2012, 12:58 PM