Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add a warning about untrusted input to configparser docs
  • Loading branch information
StanFromIreland committed Mar 22, 2026
commit cdca5598bad4ae5c9437ffa05db2424495a7464e
5 changes: 5 additions & 0 deletions Doc/library/configparser.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ can be customized by end users easily.
This library does *not* interpret or write the value-type prefixes used in
the Windows Registry extended version of INI syntax.

.. warning::
Be cautious when parsing data from untrusted sources. A malicious
INI file may cause the decoder to consume considerable CPU and memory
resources. Limiting the size of data to be parsed is recommended.

.. seealso::

Module :mod:`tomllib`
Expand Down
Loading