You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2019-08-28.01:16:38.120>created_at=<Date2018-10-19.18:36:56.897>labels= ['3.7', '3.8', 'type-bug', 'library']
title='Off by one error in cgi.FieldStorage(max_num_fields)'updated_at=<Date2019-08-28.01:16:38.120>user='https://github.com/matthewbelisle-wf'
The cgi.FieldStorage class added in #9660 has an off by one error in the logic for recursively nested objects. The problem is that sub_max_num_fields should be initialized outside of the while loop, not inside of it. Adding a unit test to cover this case.
Note: This problem does not exist in the 2.7 backport in #9969.
New changeset b79b5c0 by Miss Islington (bot) (matthewbelisle-wf) in branch 'master': bpo-35028: cgi: Fix max_num_fields off by one error (GH-9973) b79b5c0
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: