You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PyType_FromSpec wrong behavior with multiple Py_tp_members #80712
If a user accidentally defined more than one Py_tp_members in the spec, PyType_FromSpec will ignore all but the last use case. However, the number of members count will cause the type to allocate more memory than needed. This leads to weird behavior and crashes.
The solution is a one line fix to just restart the count if multiple Py_tp_members are defined.
Activity
eduardo-elizondo commentedon Apr 4, 2019
If a user accidentally defined more than one Py_tp_members in the spec, PyType_FromSpec will ignore all but the last use case. However, the number of members count will cause the type to allocate more memory than needed. This leads to weird behavior and crashes.
The solution is a one line fix to just restart the count if multiple Py_tp_members are defined.
iritkatriel commentedon Oct 16, 2020
Can this be closed? Or did you keep it open in order to add a unit test?
kumaraditya303 commentedon Jun 19, 2022
Fixed by #93471