mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
[3.11] gh-95185: Check recursion depth in the AST constructor (GH-95186) (GH-95208)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 0047447294
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
5a9920fcf5
commit
86eb500068
6 changed files with 614 additions and 443 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