From: Brett Cannon Date: Fri, 9 Mar 2018 23:58:40 +0000 (-0800) Subject: Warn that dbm.dumb.open() can crash Python (GH-6047) X-Git-Tag: v3.8.0a1~2113 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10485ebd40669d3e17ab4f477c8c898543bcccd1;p=python Warn that dbm.dumb.open() can crash Python (GH-6047) --- diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst index 1abc36c04a..ab45cac830 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'``.