Skip to content

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

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 1 commit into from
Jul 27, 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 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>
@bedevere-bot bedevere-bot added type-bug An unexpected behavior, bug, or error awaiting review labels Jul 27, 2023
@gpshead gpshead merged commit 5daf19d into python:3.12 Jul 27, 2023
@miss-islington miss-islington deleted the backport-f01e4ce-3.12 branch July 27, 2023 20:52
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.

4 participants