summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-05-13 11:40:03 (GMT)
committerGitHub <noreply@github.com>2018-05-13 11:40:03 (GMT)
commit0d17e60b33aca1a4d151a8a2bd6eaa331f0ec658 (patch)
tree1f5f05ed93b25abca890d8718d52ee0e935e3057 /Python/bltinmodule.c
parent308dbe03887a60a192860bc533af15e7520169a6 (diff)
downloadcpython-0d17e60b33aca1a4d151a8a2bd6eaa331f0ec658.zip
cpython-0d17e60b33aca1a4d151a8a2bd6eaa331f0ec658.tar.gz
cpython-0d17e60b33aca1a4d151a8a2bd6eaa331f0ec658.tar.bz2
bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)
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 1e2ec8a996daec65d8d5a3d43b66a9909c6d0653) Co-authored-by: Rolf Eike Beer <eike@sf-mail.de>
Diffstat (limited to 'Python/bltinmodule.c')
0 files changed, 0 insertions, 0 deletions