]> granicus.if.org Git - python/commitdiff
Warn that dbm.dumb.open() can crash Python (GH-6047) (GH-6048)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 10 Mar 2018 00:12:54 +0000 (16:12 -0800)
committerBrett Cannon <brettcannon@users.noreply.github.com>
Sat, 10 Mar 2018 00:12:54 +0000 (16:12 -0800)
(cherry picked from commit 10485ebd40669d3e17ab4f477c8c898543bcccd1)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
Doc/library/dbm.rst

index 32e80b2cf6ed222fc822cb69b2b6d26ec40e60b6..0150f5d5c6e8c335b20a5bffbd0043d94a4472e9 100644 (file)
@@ -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'``.