summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-04-25 10:38:00 (GMT)
committerGitHub <noreply@github.com>2021-04-25 10:38:00 (GMT)
commitface87c94e67ad9c72b9a3724f112fd76c1002b9 (patch)
tree13d540eb4c3be35aff2f66bf981e300930ac0b49 /Misc
parentb5adc8a7e5c13d175b4d3e53b37bc61de35b1457 (diff)
downloadcpython-face87c94e67ad9c72b9a3724f112fd76c1002b9.zip
cpython-face87c94e67ad9c72b9a3724f112fd76c1002b9.tar.gz
cpython-face87c94e67ad9c72b9a3724f112fd76c1002b9.tar.bz2
bpo-42609: Check recursion depth in the AST validator and optimizer (GH-23744)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Core and Builtins/2020-12-12-14-28-31.bpo-42609.Qcd54b.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-12-12-14-28-31.bpo-42609.Qcd54b.rst b/Misc/NEWS.d/next/Core and Builtins/2020-12-12-14-28-31.bpo-42609.Qcd54b.rst
new file mode 100644
index 0000000..d2b0c64
--- /dev/null
+++ b/Misc/NEWS.d/next/Core and Builtins/2020-12-12-14-28-31.bpo-42609.Qcd54b.rst
@@ -0,0 +1,3 @@
+Prevented crashes in the AST validator and optimizer when compiling some
+absurdly long expressions like ``"+0"*1000000``. :exc:`RecursionError` is
+now raised instead.