Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
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
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@hawkinsp does this look right to you? |
Objects/methodobject.c Outdated
@@ -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 |
There was a problem hiding this comment.
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.
bd3aa0b
intopython:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.