summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-03-09 16:12:54 -0800
committerBrett Cannon <brettcannon@users.noreply.github.com>2018-03-09 16:12:54 -0800
commit6826589415408e68e7872bfde30abbdff17772b2 (patch)
treef01331d4c8eec0739eb675097680e1c286514f4b
parentfc5e0956fe492551c658ebe325ba77c0aa4f2adb (diff)
downloadcpython-git-6826589415408e68e7872bfde30abbdff17772b2.tar.gz
Warn that dbm.dumb.open() can crash Python (GH-6047) (GH-6048)
(cherry picked from commit 10485ebd40669d3e17ab4f477c8c898543bcccd1) Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
-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 32e80b2cf6..0150f5d5c6 100644
--- a/Doc/library/dbm.rst
+++ b/Doc/library/dbm.rst
@@ -347,6 +347,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'``.