New submission from Matthew Belisle <matthew.beli...@workiva.com>:
The cgi.FieldStorage class added in https://github.com/python/cpython/pull/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 https://github.com/python/cpython/pull/9969. ---------- components: Library (Lib) messages: 328060 nosy: Matthew Belisle priority: normal severity: normal status: open title: Off by one error in cgi.FieldStorage(max_num_fields) type: behavior versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35028> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com