]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 19 Oct 2018 11:16:57 +0000 (04:16 -0700)
committerGitHub <noreply@github.com>
Fri, 19 Oct 2018 11:16:57 +0000 (04:16 -0700)
commit322a914965368ffd7e4f97ede50b351fdf48d870
tree6a79e88c4ef83a6df6fc5655b760db0f6a36056e
parentd85c2726b9f305ac5128764bda773a78e52101cd
bpo-34866: Adding max_num_fields to cgi.FieldStorage (GH-9660)

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)

Co-authored-by: matthewbelisle-wf <matthew.belisle@workiva.com>
Lib/cgi.py
Lib/test/test_cgi.py
Lib/test/test_urlparse.py
Lib/urllib/parse.py
Misc/NEWS.d/next/Library/2018-10-03-11-07-28.bpo-34866.ML6KpJ.rst [new file with mode: 0644]