mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-42609: Check recursion depth in the AST validator and optimizer (GH-23744)
This commit is contained in:
parent
b5adc8a7e5
commit
face87c94e
5 changed files with 309 additions and 149 deletions
|
|
@ -28,6 +28,9 @@ extern PyObject* _Py_Mangle(PyObject *p, PyObject *name);
|
|||
typedef struct {
|
||||
int optimize;
|
||||
int ff_features;
|
||||
|
||||
int recursion_depth; /* current recursion depth */
|
||||
int recursion_limit; /* recursion limit */
|
||||
} _PyASTOptimizeState;
|
||||
|
||||
extern int _PyAST_Optimize(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue