Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

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

gh-145623: Fix crashes on uninitialized struct.Struct objects#145624

Merged
corona10 merged 2 commits intopython:mainfrom
raminfp:fix-gh-145623-struct-uninitialized-crash
Mar 7, 2026
Merged

gh-145623: Fix crashes on uninitialized struct.Struct objects#145624
corona10 merged 2 commits intopython:mainfrom
raminfp:fix-gh-145623-struct-uninitialized-crash

Conversation

@raminfp
Copy link
Contributor

@raminfpraminfp commentedMar 7, 2026
edited by bedevere-appbot
Loading

AddENSURE_STRUCT_IS_READY() checks toStruct.__sizeof__() andStruct.__repr__() to prevent crashes when called on uninitializedStruct objects.

Add ENSURE_STRUCT_IS_READY() checks to Struct.__sizeof__() andStruct.__repr__() to prevent NULL pointer dereference and invalidmemory read when called on a Struct created via __new__() without__init__().
@corona10corona10 added needs backport to 3.13bugs and security fixes needs backport to 3.14bugs and security fixes labelsMar 7, 2026
Copy link
Member

@corona10corona10 left a comment

Choose a reason for hiding this comment

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

lgtm!

@corona10corona10 merged commit2cf6b2c intopython:mainMar 7, 2026
62 checks passed
@miss-islington-app
Copy link

Thanks@raminfp for the PR, and@corona10 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

@miss-islington-app
Copy link

Sorry,@raminfp and@corona10, I could not cleanly backport this to3.14 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 2cf6b2caade94e75f10363df6f432a3e6515be6c 3.14

@miss-islington-app
Copy link

Sorry,@raminfp and@corona10, I could not cleanly backport this to3.13 due to a conflict.
Please backport usingcherry_picker on command line.

cherry_picker 2cf6b2caade94e75f10363df6f432a3e6515be6c 3.13

@corona10
Copy link
Member

@raminfp In my local environment, Python 3.14 and 3.13 have same issue, would you like to create a backport patch for this?

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

Reviewers

@skirpichevskirpichevskirpichev approved these changes

@corona10corona10corona10 approved these changes

Assignees

@corona10corona10

Labels

needs backport to 3.13bugs and security fixesneeds backport to 3.14bugs and security fixes

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@raminfp@corona10@skirpichev

[8]ページ先頭

©2009-2026 Movatter.jp