]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Set an upper limit on the size of the field buffer, raise an exception
authorAndrew McNamara <andrewm@object-craft.com.au>
Tue, 11 Jan 2005 07:32:02 +0000 (07:32 +0000)
committerAndrew McNamara <andrewm@object-craft.com.au>
Tue, 11 Jan 2005 07:32:02 +0000 (07:32 +0000)
commite4d05c4f93d0cf4359a5df5862110d94c8216de4
treeb4524838f7fa31ca4c4f68f4a22597b194ebd9aa
parent29bf4e44f6392e402f15512e80295750691d436a
Set an upper limit on the size of the field buffer, raise an exception
when this limit is reached. Limit defaults to 128k, and is changed
by module set_field_limit() method. Previously, an unmatched quote
character could result in the entire file being read into the field
buffer, potentially exhausting virtual memory.
Lib/csv.py
Lib/test/test_csv.py
Modules/_csv.c