summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brettcannon@users.noreply.github.com>2018-03-09 23:58:40 (GMT)
committerGitHub <noreply@github.com>2018-03-09 23:58:40 (GMT)
commit10485ebd40669d3e17ab4f477c8c898543bcccd1 (patch)
treea23614e989a3562891aa2c8140c895f0bfa9a299
parentf7a6ff6fcab32a53f262ba3f8a072c27afc330d7 (diff)
downloadcpython-10485ebd40669d3e17ab4f477c8c898543bcccd1.zip
cpython-10485ebd40669d3e17ab4f477c8c898543bcccd1.tar.gz
cpython-10485ebd40669d3e17ab4f477c8c898543bcccd1.tar.bz2
Warn that dbm.dumb.open() can crash Python (GH-6047)
-rw-r--r--Doc/library/dbm.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index 1abc36c..ab45cac 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -361,6 +361,11 @@ The module defines the following:
database has to be created. It defaults to octal ``0o666`` (and will be modified
by the prevailing umask).
+ .. warning::
+ It is possible to crash the Python interpreter when loading a database
+ with a sufficiently large/complex entry due to stack depth limitations in
+ Python's AST compiler.
+
.. versionchanged:: 3.5
:func:`.open` always creates a new database when the flag has the value
``'n'``.