gh-129409: Fix Integer overflow - SEGV while writing data more than 2GB in CSV file (#129413)

This commit is contained in:
Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్ రెడ్డి)
2025-01-29 16:45:47 +05:30
committed by GitHub
parent 4815131910
commit 97b0ef05d9
2 changed files with 3 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
Fix an integer overflow in the :mod:`csv` module when writing a data field
larger than 2GB.

View File

@@ -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 \