]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34866: Add max_num_fields to cgi.FieldStorage (GH-9660) (GH-9969)
authormatthewbelisle-wf <matthew.belisle@workiva.com>
Tue, 30 Oct 2018 21:16:26 +0000 (16:16 -0500)
committerVictor Stinner <vstinner@redhat.com>
Tue, 30 Oct 2018 21:16:26 +0000 (22:16 +0100)
commitbc6f74a520112d25ef40324e3de4e8187ff2835d
tree6240dc59ea6b1ca83094e0390f77bc8d013ebf6c
parent64ffee7ad2655c7de9b3b6548aad0c317877ec49
bpo-34866: Add max_num_fields to cgi.FieldStorage (GH-9660) (GH-9969)

Adding `max_num_fields` to `cgi.FieldStorage` to make DOS attacks harder by
limiting the number of `MiniFieldStorage` objects created by `FieldStorage`.

(cherry picked from commit 209144831b0a19715bda3bd72b14a3e6192d9cc1)
Doc/library/cgi.rst
Doc/library/urlparse.rst
Lib/cgi.py
Lib/test/test_cgi.py
Lib/urlparse.py
Misc/NEWS.d/next/Library/2018-10-03-11-07-28.bpo-34866.ML6KpJ.rst [new file with mode: 0644]