Skip to content

Commit

Permalink
[3.12] pythongh-129409: Fix Integer overflow - SEGV while writing dat…
Browse files Browse the repository at this point in the history
…a more than 2GB in CSV file (pythonGH-129413) (python#129437)

pythongh-129409: Fix Integer overflow -  SEGV while writing data more than 2GB in CSV file (pythonGH-129413)
(cherry picked from commit 97b0ef0)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్  రెడ్డి) <thatiparthysreenivas@gmail.com>
  • Loading branch information
miss-islington and srinivasreddy authored Jan 29, 2025
1 parent e5ab9e3 commit cdaec31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix an integer overflow in the :mod:`csv` module when writing a data field
larger than 2GB.
2 changes: 1 addition & 1 deletion Modules/_csv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,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 \
Expand Down

0 comments on commit cdaec31

Please sign in to comment.