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

[3.9] bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) #26522

Merged
merged 1 commit into from Jun 3, 2021

Conversation

Copy link
Member

@isidentical isidentical commented Jun 3, 2021

When compiling an AST object with a direct / indirect reference
cycles, on the conversion phase because of exceeding amount of
calls, a segfault was raised. This patch adds recursion guards to
places for preventing user inputs to not to crash AST but instead
raise a RecursionError..
(cherry picked from commit f349124)

Co-authored-by: Batuhan Taskaya batuhan@python.org

https://bugs.python.org/issue11105

Automerge-Triggered-By: GH:isidentical

…-20594)

When compiling an AST object with a direct / indirect reference
cycles, on the conversion phase because of exceeding amount of
calls, a segfault was raised. This patch adds recursion guards to
places for preventing user inputs to not to crash AST but instead
raise a RecursionError..
(cherry picked from commit f349124)

Co-authored-by: Batuhan Taskaya <batuhan@python.org>
@isidentical isidentical added the 🤖 automerge label Jun 3, 2021
@isidentical isidentical requested a review from pablogsal Jun 3, 2021
@pablogsal pablogsal merged commit de58b31 into python:3.9 Jun 3, 2021
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed 🤖 automerge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants