Skip to content

[3.11] gh-104432: Use memcpy() to avoid misaligned loads (GH-104433) #107356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2023

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 [email protected]

…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 <[email protected]>
@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