We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 565a318 commit da5c808Copy full SHA for da5c808
Misc/NEWS.d/next/Library/2021-05-05-11-44-49.bpo-36515.uOSa3q.rst
@@ -0,0 +1,2 @@
1
+The :mod:`hashlib` module no longer does unaligned memory accesses when
2
+compiled for ARM platforms.
Modules/_sha3/sha3module.c
@@ -64,6 +64,11 @@
64
#define PLATFORM_BYTE_ORDER IS_BIG_ENDIAN
65
#endif
66
67
+/* Prevent bus errors on platforms requiring aligned accesses such ARM. */
68
+#if HAVE_ALIGNED_REQUIRED && !defined(NO_MISALIGNED_ACCESSES)
69
+#define NO_MISALIGNED_ACCESSES
70
+#endif
71
+
72
/* mangle names */
73
#define KeccakF1600_FastLoop_Absorb _PySHA3_KeccakF1600_FastLoop_Absorb
74
#define Keccak_HashFinal _PySHA3_Keccak_HashFinal
0 commit comments