Skip to content

Commit 1f24847

Browse files
committed
Fix comment alignment; add whatsnew entry
1 parent e04d12a commit 1f24847

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/source/whatsnew/v0.21.0.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ I/O
201201
^^^
202202

203203
- Bug in :func:`read_csv` in which non integer values for the header argument generated an unhelpful / unrelated error message (:issue:`16338`)
204-
204+
- Bug in :func:`read_csv` in which passing a CSV with at least one very large (i.e. more than 2^31 - 1 bytes) column along with ``low_memory=False`` would cause an integer overflow. The result was an always unsuccessful attempt to allocate an enourmous buffer and then reporting "Out of memory." (:issue:`16798`).
205+
- Bug in :func:`read_csv` in which some errors paths were assigning error messages to the internal tokenizer's ``error_msg`` field without first allocating the memory. When this happened as part of exception handling, it resulted in a double ``free`` and the program halted due to a ``SIGSEGV`` (:issue:`16798`).
205206
- Bug in :func:`read_stata` where value labels could not be read when using an iterator (:issue:`16923`)
206207

207208
Plotting

pandas/_libs/parsers.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ cdef extern from "parser/tokenizer.h":
137137
int64_t words_len
138138
int64_t words_cap
139139

140-
char *pword_start # pointer to stream start of current field
140+
char *pword_start # pointer to stream start of current field
141141
int64_t word_start # position start of current field
142142

143143
int64_t *line_start # position in words for start of line
@@ -177,9 +177,9 @@ cdef extern from "parser/tokenizer.h":
177177
# thousands separator (comma, period)
178178
char thousands
179179

180-
int header # Boolean: 1: has header, 0: no header
181-
int64_t header_start # header row start
182-
int64_t header_end # header row end
180+
int header # Boolean: 1: has header, 0: no header
181+
int64_t header_start # header row start
182+
int64_t header_end # header row end
183183

184184
void *skipset
185185
PyObject *skipfunc

0 commit comments

Comments
 (0)