[Python-checkins] Warn that dbm.dumb.open() can crash Python (GH-6047)

Brett Cannon webhook-mailer at python.org
Fri Mar 9 18:58:43 EST 2018

commit: 10485ebd40669d3e17ab4f477c8c898543bcccd1
branch: master
author: Brett Cannon <brettcannon at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2018-03-09T15:58:40-08:00

Warn that dbm.dumb.open() can crash Python (GH-6047)

M Doc/library/dbm.rst

diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst
index 1abc36c04a74..ab45cac830e2 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

More information about the Python-checkins mailing list