]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-104432: Use `memcpy()` to avoid misaligned loads (#104433)
authorChristopher Chavez <chrischavez@gmx.us>
Thu, 27 Jul 2023 19:20:25 +0000 (14:20 -0500)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2023 19:20:25 +0000 (19:20 +0000)
commitf01e4cedba1a17d321664834bb255d9d04ad16ce
tree6fe5741dbb1406037f5d14e55b613bed4d40e291
parent983305268e2291b0a7835621b81bf40cba7c27f3
gh-104432: Use `memcpy()` to avoid misaligned loads (#104433)

Fix potential unaligned memory access on C APIs involving returned sequences
of `char *` pointers within the :mod:`grp` and :mod:`socket` modules. These
were revealed using a ``-fsaniziter=alignment`` build on ARM macOS.
Misc/NEWS.d/next/Core and Builtins/2023-07-27-11-47-29.gh-issue-104432.oGHF-z.rst [new file with mode: 0644]
Modules/grpmodule.c
Modules/socketmodule.c