Skip to content

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

Merged
pablogsal merged 1 commit into
python:3.9from
isidentical:backport-f349124-3.9
Jun 3, 2021
Merged

pablogsal merged 1 commit into
python:3.9from
isidentical:backport-f349124-3.9

Conversation

@isidentical

@isidentical isidentical commented Jun 3, 2021 •

Copy link
Copy Markdown
Member

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants