mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-129409: Fix Integer overflow - SEGV while writing data more than 2GB in CSV file (#129413)
This commit is contained in:
parent
4815131910
commit
97b0ef05d9
2 changed files with 3 additions and 1 deletions
|
|
@ -0,0 +1,2 @@
|
|||
Fix an integer overflow in the :mod:`csv` module when writing a data field
|
||||
larger than 2GB.
|
||||
|
|
@ -1138,7 +1138,7 @@ join_append_data(WriterObj *self, int field_kind, const void *field_data,
|
|||
int copy_phase)
|
||||
{
|
||||
DialectObj *dialect = self->dialect;
|
||||
int i;
|
||||
Py_ssize_t i;
|
||||
Py_ssize_t rec_len;
|
||||
|
||||
#define INCLEN \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue