◐ Shell
reader mode source ↗
Skip to content

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

Closed
matoro wants to merge 2 commits into
python:mainfrom
matoro:main
Closed

GH-94149: Fix unaligned access in convertsimple().#94141
matoro wants to merge 2 commits into
python:mainfrom
matoro:main

Conversation

@matoro

@matoro matoro commented Jun 22, 2022

Copy link
Copy Markdown

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

ghost commented Jun 22, 2022

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot

Copy link
Copy Markdown

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(). 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 <sam@gentoo.org>
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