mirror of https://github.com/python/cpython
Browse Source
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.pull/26523/head
committed by
GitHub
4 changed files with 840 additions and 4 deletions
808
Python/Python-ast.c
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Loading…
Reference in new issue