]> granicus.if.org Git - python/commitdiff
Warn that dbm.dumb.open() can crash Python (GH-6047)
authorBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 9 Mar 2018 23:58:40 +0000 (15:58 -0800)
committerGitHub <noreply@github.com>
Fri, 9 Mar 2018 23:58:40 +0000 (15:58 -0800)
Doc/library/dbm.rst

index 1abc36c04a74c1000567974f5fcce0250dca8e97..ab45cac830e24d783d21beaa2186a235f0d171a3 100644 (file)
@@ -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'``.