Skip to content

Commit

Permalink
Warn that dbm.dumb.open() can crash Python (GH-6047) (GH-6048)
Browse files Browse the repository at this point in the history
(cherry picked from commit 10485eb)

Co-authored-by: Brett Cannon <brettcannon@users.noreply.github.com>
  • Loading branch information
miss-islington and brettcannon committed Mar 10, 2018
1 parent fc5e095 commit 6826589
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/library/dbm.rst
Expand Up @@ -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'``.
Expand Down

0 comments on commit 6826589

Please sign in to comment.