summaryrefslogtreecommitdiffstats
path: root/Python/pyhash.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31849: Fix warning in pyhash.c (GH-6799)Miss Islington (bot)2018-06-041-2/+2
| | | | | (cherry picked from commit a8eb58546b37a7cd5f332f019bb07388f5212c2d) Co-authored-by: A. Jesse Jiryu Davis <jesse@emptysquare.net>
* bpo-28055: Fix unaligned accesses in siphash24(). (GH-6123)Miss Islington (bot)2018-05-131-13/+13
| | | | | | | | | | 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>
* [3.6] bpo-30923: Silence fall-through warnings included in -Wextra since ↵Victor Stinner2017-09-121-6/+6
| | | | | | | | | | | | | | | | gcc-7.0 (#3518) * bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142) (cherry picked from commit d73a960c575207539c3f9765cff26d4fff400b45) * bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. (#3157) (cherry picked from commit f432a3234f9f2ee09bd40be03e06bf72865ee375) * bpo-31275: Small refactoring to silence a fall-through warning. (#3206) (cherry picked from commit 138753c1b96b5e06a5c5d409fa4cae5e2fe1108b)
* Issue #28126: Replace Py_MEMCPY with memcpy(). Visual Studio can properly ↵Christian Heimes2016-09-131-1/+1
| | | | optimize memcpy().
* replace Python aliases for standard integer types with the standard integer ↵Benjamin Peterson2016-09-061-28/+25
| | | | types (#17884)
* Issue #20162: Fix an alignment issue in the siphash24() hash function whichVictor Stinner2014-02-011-1/+1
| | | | caused a crash on PowerPC 64-bit (ppc64).
* Issue #19183: too many tests depend on the sort order of repr().Christian Heimes2013-11-201-3/+0
| | | | The bitshift and xor op for 32bit builds has changed the order of hash values.
* ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes2013-11-201-0/+430
Python now uses SipHash24 on all major platforms.