◐ Shell
clean mode source ↗

gh-111178: fix UBSan failures in `Modules/_tkinter.c` by picnixz · Pull Request #129795 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@picnixz

@picnixz picnixz commented

Feb 7, 2025

edited by bedevere-app Bot

Loading

Copy link Copy Markdown

Member

This PR fixes the UBSan failures and addresses some minor cosmetic changes. PEP-7 changes were not applied since they could scramble the diff but other semantic changes affecting the signature of touched functions may have been done.

@picnixz picnixz marked this pull request as ready for review

February 8, 2025 09:37

@picnixz picnixz marked this pull request as draft

February 24, 2025 13:14

@picnixz

picnixz commented

Feb 25, 2025

Copy link Copy Markdown

Member Author

Independently of this PR, but can't we actually transform static types of tkinter into heap types?

@picnixz picnixz marked this pull request as ready for review

February 25, 2025 11:32

@encukou encukou 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! One nitpick left:

Comment thread

Modules/_tkinter.c Outdated

@encukou

encukou commented

Feb 25, 2025

Copy link Copy Markdown

Member

Independently of this PR, but can't we actually transform static types of tkinter into heap types?

See #103092 (comment) & #103108

@encukou encukou merged commit 59d3ad0 into python:main

Feb 26, 2025

@picnixz picnixz deleted the fix/ubsan/tkinter-111178 branch

February 28, 2025 13:11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@encukou encukou encukou approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@picnixz @encukou