Skip to content

t-strings: Reduce undefined behaviour - #72

Merged
lysnikolaou merged 6 commits into
lysnikolaou:tstringsfrom
AA-Turner:tstrings-ub
Apr 19, 2025
Merged

t-strings: Reduce undefined behaviour#72
lysnikolaou merged 6 commits into
lysnikolaou:tstringsfrom
AA-Turner:tstrings-ub

Conversation

@AA-Turner

Copy link
Copy Markdown

cc @picnixz

As part of this, introduce two _CAST() macros.

A

@AA-Turner
AA-Turner requested a review from lysnikolaou as a code owner April 18, 2025 18:59
@AA-Turner AA-Turner changed the title t-strings: Remove undefined behaviour t-strings: Reduce undefined behaviour Apr 18, 2025
Comment thread Objects/interpolationobject.c Outdated
Comment thread Include/internal/pycore_interpolation.h Outdated
AA-Turner and others added 2 commits April 18, 2025 21:15
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@AA-Turner
AA-Turner requested a review from picnixz April 19, 2025 15:14

@lysnikolaou lysnikolaou left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Looks good! I didn't know this was UB.

@lysnikolaou
lysnikolaou merged commit 5782897 into lysnikolaou:tstrings Apr 19, 2025
@AA-Turner
AA-Turner deleted the tstrings-ub branch April 19, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants