Skip to content

Commit

Permalink
Warn that dbm.dumb.open() can crash Python (pythonGH-6047)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Mar 9, 2018
1 parent f7a6ff6 commit 10485eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/library/dbm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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'``.
Expand Down

0 comments on commit 10485eb

Please sign in to comment.