| commit | f3491242e41933aa9529add7102edb68b80a25e9 | [log] [tgz] |
|---|---|---|
| author | Batuhan Taskaya <batuhan@python.org> | Thu Jun 03 23:01:02 2021 +0300 |
| committer | GitHub <noreply@github.com> | Thu Jun 03 21:01:02 2021 +0100 |
| tree | cc4331ec55371585163e5db0291d6c17a765eca7 | |
| parent | f461a7fc3f8740b9e79e8874175115a3474e5930 [diff] |
bpo-11105: Do not crash when compiling recursive ASTs (GH-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.