-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
3.12only security fixesonly security fixestopic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
The PyObject_GC_Resize implementation in the main branch doesn't check if the object has a preheader:
Lines 2357 to 2358 in 0ef92d9
| PyGC_Head *g = AS_GC(op); | |
| g = (PyGC_Head *)PyObject_Realloc(g, sizeof(PyGC_Head) + basicsize); |
The only internal use I see is by _PyTuple_Resize which doesn't have a preheader, but the PyObject_GC_Resize function is publicly documented.
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixestopic-C-APItype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error