Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10485eb

Browse files
authored
Warn that dbm.dumb.open() can crash Python (GH-6047)
1 parent f7a6ff6 commit 10485eb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/library/dbm.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ The module defines the following:
361361
database has to be created. It defaults to octal ``0o666`` (and will be modified
362362
by the prevailing umask).
363363

364+
.. warning::
365+
It is possible to crash the Python interpreter when loading a database
366+
with a sufficiently large/complex entry due to stack depth limitations in
367+
Python's AST compiler.
368+
364369
.. versionchanged:: 3.5
365370
:func:`.open` always creates a new database when the flag has the value
366371
``'n'``.

0 commit comments

Comments
 (0)