KEMBAR78
[3.11] gh-104432: Use `memcpy()` to avoid misaligned loads (GH-104433) by miss-islington · Pull Request #107356 · python/cpython · GitHub
Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Jul 27, 2023

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.
(cherry picked from commit f01e4ce)

Co-authored-by: Christopher Chavez chrischavez@gmx.us

…04433)

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.
(cherry picked from commit f01e4ce)

Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
@gpshead gpshead merged commit c7d9976 into python:3.11 Jul 28, 2023
@miss-islington miss-islington deleted the backport-f01e4ce-3.11 branch July 28, 2023 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants