Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AST constructor can stack overflow when compiling some deep trees #95185

Closed
pablogsal opened this issue Jul 23, 2022 · 0 comments · Fixed by #95186
Closed

AST constructor can stack overflow when compiling some deep trees #95185

pablogsal opened this issue Jul 23, 2022 · 0 comments · Fixed by #95186

Comments

@pablogsal
Copy link
Member

pablogsal commented Jul 23, 2022

This crashes CPython on most machines (use a release build):

python3 -c 'import ast; ast.parse("+0"*209644)'
pablogsal added a commit to pablogsal/cpython that referenced this issue Jul 23, 2022
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
pablogsal added a commit that referenced this issue Jul 24, 2022
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Jul 24, 2022
…H-95186)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 0047447)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
pablogsal added a commit to pablogsal/cpython that referenced this issue Jul 24, 2022
…ythonGH-95186)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>.
(cherry picked from commit 0047447)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
ambv pushed a commit that referenced this issue Jul 26, 2022
…) (GH-95208)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 0047447)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant