mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
976598d36b
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 f3491242e4)
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
Miscellaneous source files for the main Python shared library