avoid unaligned access errors, e.g., on sparc
authorJim Meyering <meyering@redhat.com>
Mon, 26 May 2008 14:25:28 +0000 (16:25 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 26 May 2008 14:30:45 +0000 (16:30 +0200)
commite341e7caaea9a3fd5f311195b023af8d280944fa
tree827d40c22d07ec44c072eb12a5ef5c70592dee75
parent49c2c800d98967210cdae5122c15f03891964da7
avoid unaligned access errors, e.g., on sparc

* lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
direct access through a possibly-unaligned uint64* pointer.
* lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
direct access through a possibly-unaligned uint32* pointer.
Prompted by this patch from Tom "spot" Callaway:
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
ChangeLog
lib/sha256.c
lib/sha512.c