]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] GH-98671: bpo-46670: Fix #ifdef in sha3module.c (GH-90828) (#98677)
authorsamypr100 <3933065+samypr100@users.noreply.github.com>
Fri, 28 Oct 2022 10:13:44 +0000 (06:13 -0400)
committerGitHub <noreply@github.com>
Fri, 28 Oct 2022 10:13:44 +0000 (12:13 +0200)
Misc/NEWS.d/next/Build/2022-10-25-14-43-00.gh-issue-98671.a42a6d.rst [new file with mode: 0644]
Modules/_sha3/sha3module.c

diff --git a/Misc/NEWS.d/next/Build/2022-10-25-14-43-00.gh-issue-98671.a42a6d.rst b/Misc/NEWS.d/next/Build/2022-10-25-14-43-00.gh-issue-98671.a42a6d.rst
new file mode 100644 (file)
index 0000000..54b78ed
--- /dev/null
@@ -0,0 +1,3 @@
+Fix ``NO_MISALIGNED_ACCESSES`` being not defined for the SHA3 extension 
+when ``HAVE_ALIGNED_REQUIRED`` is set. Allowing builds on hardware that 
+unaligned memory accesses are not allowed.
index 3974e0b6b47faac9946cbad3206910ae138e6954..a2f9d8c75467ae3ad403f53d138e20e9f0f5ebd2 100644 (file)
@@ -65,7 +65,7 @@
 #endif
 
 /* Prevent bus errors on platforms requiring aligned accesses such ARM. */
-#if HAVE_ALIGNED_REQUIRED && !defined(NO_MISALIGNED_ACCESSES)
+#if defined(HAVE_ALIGNED_REQUIRED) && !defined(NO_MISALIGNED_ACCESSES)
 #define NO_MISALIGNED_ACCESSES
 #endif