mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-95185: Check recursion depth in the AST constructor (#95186)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
3c94d3395e
commit
0047447294
5 changed files with 168 additions and 2 deletions
2
Include/internal/pycore_ast_state.h
generated
2
Include/internal/pycore_ast_state.h
generated
|
|
@ -12,6 +12,8 @@ extern "C" {
|
|||
|
||||
struct ast_state {
|
||||
int initialized;
|
||||
int recursion_depth;
|
||||
int recursion_limit;
|
||||
PyObject *AST_type;
|
||||
PyObject *Add_singleton;
|
||||
PyObject *Add_type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue