]> 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:11:16 +0000 (04:11 -0700)
committerGitHub <noreply@github.com>
Fri, 19 Oct 2018 11:11:16 +0000 (04:11 -0700)
commita66f279a1381dd5c1c27232ccf9f210d575e1dcc
treef496d5feb844bbac663a0f8d166e2a94bb14abf6
parentd6d35d0a005bb3d1e04095074c255bf8d0b651d7
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]