diff options
author | Batuhan Taskaya <batuhan@python.org> | 2021-06-03 21:22:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 21:22:34 (GMT) |
commit | de58b319af3a72440a74e807cf8a1194ed0c6d8c (patch) | |
tree | 09887cfcd1ad5428657f7747df04957dbc498b09 /Python/pymath.c | |
parent | 5a8ddcc4524dca3880d7fc2818814ffae1cfb8a2 (diff) | |
download | cpython-de58b319af3a72440a74e807cf8a1194ed0c6d8c.zip cpython-de58b319af3a72440a74e807cf8a1194ed0c6d8c.tar.gz cpython-de58b319af3a72440a74e807cf8a1194ed0c6d8c.tar.bz2 |
[3.9] bpo-11105: Do not crash when compiling recursive ASTs (GH-20594) (GH-26522)
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 f3491242e41933aa9529add7102edb68b80a25e9)
Co-authored-by: Batuhan Taskaya <batuhan@python.org>
Diffstat (limited to 'Python/pymath.c')
0 files changed, 0 insertions, 0 deletions