[3.7] bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123) by miss-islington · Pull Request #6777 · python/cpython

@DerDakon @miss-islington

The hash implementation casts the input pointer to uint64_t* and directly reads
from this, which may cause unaligned accesses. Use memcpy() instead so this code
will not crash with SIGBUS on sparc.

https://bugs.gentoo.org/show_bug.cgi?id=636400
(cherry picked from commit 1e2ec8a)

Co-authored-by: Rolf Eike Beer <eike@sf-mail.de>

@bedevere-bot mentioned this pull request

May 13, 2018

serhiy-storchaka