Skip to content

GH-94149: Fix unaligned access in convertsimple(). #94141

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

Closed
wants to merge 2 commits into from

Conversation

matoro
Copy link

@matoro matoro commented Jun 22, 2022

Like #6123 this pointer may be unaligned, so a memcpy() instead of simple assignment is required for strict architectures e.g. sparc.

Like python#6123 this pointer may be
unaligned, so a memcpy() instead of simple assignment is required for
strict architectures e.g. sparc.
@ghost
Copy link

ghost commented Jun 22, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@matoro matoro changed the title Fix unaligned access in convertsimple(). GH-94149: Fix unaligned access in convertsimple(). Jun 23, 2022
@matoro matoro closed this Jul 4, 2022
matoro added a commit to matoro/gentoo that referenced this pull request Aug 23, 2022
This actually fixes a real bug that normally only would have manifested
under specific conditions (possibly crafted input file) but was revealed
due to sparc's alignment requirements.  Initially misidentified as a
cpython bug [1] but the cpython devs helpfully clarified and pointed in
the right direction [2].

[1] python/cpython#94141
[2] python/cpython#94149

Bug: https://bugs.gentoo.org/857408
Bug: https://bugs.gentoo.org/865051
matoro added a commit to matoro/gentoo that referenced this pull request Aug 23, 2022
This actually fixes a real bug that normally only would have manifested
under specific conditions (possibly crafted input file) but was revealed
due to sparc's alignment requirements.  Initially misidentified as a
cpython bug [1] but the cpython devs helpfully clarified and pointed in
the right direction [2].

[1] python/cpython#94141
[2] python/cpython#94149

Bug: https://bugs.gentoo.org/857408
Bug: https://bugs.gentoo.org/865051
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Aug 23, 2022
This actually fixes a real bug that normally only would have manifested
under specific conditions (possibly crafted input file) but was revealed
due to sparc's alignment requirements.  Initially misidentified as a
cpython bug [1] but the cpython devs helpfully clarified and pointed in
the right direction [2].

[1] python/cpython#94141
[2] python/cpython#94149

Bug: https://bugs.gentoo.org/857408
Bug: https://bugs.gentoo.org/865051
Closes: #26970
Signed-off-by: Sam James <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants