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-126703: Fix possible use after free in pycfunction freelist#132319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Fidget-Spinner merged 4 commits intopython:mainfromFidget-Spinner:freelist-fix
Apr 9, 2025

Conversation

Fidget-Spinner
Copy link
Member

@Fidget-SpinnerFidget-Spinner commentedApr 9, 2025
edited by bedevere-appbot
Loading

vfdev-5 reacted with hooray emoji
@Fidget-SpinnerFidget-Spinner changed the titlegh-128692: Fix possible use after free in pycfunction freelistgh-126703: Fix possible use after free in pycfunction freelistApr 9, 2025
@Fidget-Spinner
Copy link
MemberAuthor

@hawkinsp does this look right to you?

@@ -173,12 +173,16 @@ meth_dealloc(PyObject *self)
if (m->m_weakreflist != NULL) {
PyObject_ClearWeakRefs((PyObject*) m);
}
// We need to access ml_flags here rather than later.
// `m` might have the same lifetime
Copy link
Contributor

@hawkinsphawkinspApr 9, 2025
edited
Loading

Choose a reason for hiding this comment

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

m->m_ml I think here, but yes.

You are also right that probably we should update the API documentation to clarify this is an acceptable thing to do.

@Fidget-SpinnerFidget-Spinner merged commitbd3aa0b intopython:mainApr 9, 2025
42 checks passed
@Fidget-SpinnerFidget-Spinner deleted the freelist-fix branchApril 9, 2025 14:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hawkinsphawkinsphawkinsp approved these changes

@eendebakpteendebakptAwaiting requested review from eendebakpt

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Fidget-Spinner@hawkinsp

[8]ページ先頭

©2009-2025 Movatter.jp