Skip to content

gh-111178: fix UBSan failures in Modules/_ctypes - #129071

Merged
picnixz merged 13 commits into
python:mainfrom
picnixz:fix/ubsan/ctypes-111178
Jan 21, 2025
Merged

gh-111178: fix UBSan failures in Modules/_ctypes#129071
picnixz merged 13 commits into
python:mainfrom
picnixz:fix/ubsan/ctypes-111178

Conversation

@picnixz

@picnixzpicnixz commented Jan 20, 2025

Copy link
Copy Markdown
Member

Comment threadModules/_ctypes/_ctypes.c Outdated
Comment threadModules/_ctypes/_ctypes.c
Comment threadModules/_ctypes/_ctypes.c
Comment threadModules/_ctypes/cfield.c

@encukouencukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Comment threadModules/_ctypes/_ctypes.c Outdated

@encukouencukou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Don't worry about making it any prettier.

@picnixz

Copy link
Copy Markdown
MemberAuthor

@vstinner I plan to merge this one with no commit message and the PR's title as the commit's title.

@vstinnervstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code changes LGTM. I didn't test the change.

@picnixz
picnixz merged commit fafc618 into python:mainJan 21, 2025
@picnixz
picnixz deleted the fix/ubsan/ctypes-111178 branch January 21, 2025 10:50
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@picnixz@vstinner@encukou@ZeroIntensity