mirror of
https://github.com/python/cpython.git
synced 2026-04-14 15:50:50 +00:00
Add a warning about untrusted input to configparser docs (#146276)
This commit is contained in:
parent
4561f6418a
commit
fb8d8d9c9f
1 changed files with 5 additions and 0 deletions
|
|
@ -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`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue