Skip to content

Fix segfault when printing tuples with None values#2430

Merged
plajjan merged 1 commit into
mainfrom
fix-tuple-none-segfault
Aug 18, 2025
Merged

Fix segfault when printing tuples with None values#2430
plajjan merged 1 commit into
mainfrom
fix-tuple-none-segfault

Conversation

@plajjan

@plajjan plajjan commented Aug 18, 2025

Copy link
Copy Markdown
Contributor

Handle NULL (None) values in tuple str method by checking for NULL before dereferencing to call repr.

Fixes #2428

Handle NULL (None) values in tuple __str__ method by checking
for NULL before dereferencing to call __repr__.
@plajjan plajjan enabled auto-merge August 18, 2025 13:11
@plajjan plajjan merged commit a6e2271 into main Aug 18, 2025
35 checks passed
@plajjan plajjan deleted the fix-tuple-none-segfault branch August 18, 2025 13:42
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.

str((None, "foo)) segfaults

1 participant