mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
GH-128682: Account for escapes in DECREF_INPUTS
(GH-129953)
* Handle escapes in DECREF_INPUTS * Mark a few more functions as escaping * Replace DECREF_INPUTS with PyStackRef_CLOSE where possible
This commit is contained in:
parent
3e222e3a15
commit
72f56654d0
18 changed files with 2228 additions and 921 deletions
|
@ -602,7 +602,6 @@ NON_ESCAPING_FUNCTIONS = (
|
|||
"PyTuple_GET_ITEM",
|
||||
"PyTuple_GET_SIZE",
|
||||
"PyType_HasFeature",
|
||||
"PyUnicode_Append",
|
||||
"PyUnicode_Concat",
|
||||
"PyUnicode_GET_LENGTH",
|
||||
"PyUnicode_READ_CHAR",
|
||||
|
@ -619,7 +618,6 @@ NON_ESCAPING_FUNCTIONS = (
|
|||
"_PyCode_CODE",
|
||||
"_PyDictValues_AddToInsertionOrder",
|
||||
"_PyErr_Occurred",
|
||||
"_PyEval_FrameClearAndPop",
|
||||
"_PyFloat_FromDouble_ConsumeInputs",
|
||||
"_PyFrame_GetBytecode",
|
||||
"_PyFrame_GetCode",
|
||||
|
@ -633,15 +631,12 @@ NON_ESCAPING_FUNCTIONS = (
|
|||
"_PyList_AppendTakeRef",
|
||||
"_PyList_FromStackRefStealOnSuccess",
|
||||
"_PyList_ITEMS",
|
||||
"_PyLong_Add",
|
||||
"_PyLong_CompactValue",
|
||||
"_PyLong_DigitCount",
|
||||
"_PyLong_IsCompact",
|
||||
"_PyLong_IsNegative",
|
||||
"_PyLong_IsNonNegativeCompact",
|
||||
"_PyLong_IsZero",
|
||||
"_PyLong_Multiply",
|
||||
"_PyLong_Subtract",
|
||||
"_PyManagedDictPointer_IsValues",
|
||||
"_PyObject_GC_IS_TRACKED",
|
||||
"_PyObject_GC_MAY_BE_TRACKED",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue