Add a warning about untrusted input to configparser docs (#146276)

This commit is contained in:
Stan Ulbrych 2026-03-22 23:58:31 +00:00 committed by GitHub
parent 4561f6418a
commit fb8d8d9c9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`