Skip to content

Commit a32be40

Browse files
committed
BUG: Fixed incorrect stream size check (pandas-dev#14125)
1 parent abae24d commit a32be40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/src/parser/tokenizer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ static int parser_buffer_bytes(parser_t *self, size_t nbytes) {
596596
TRACE(("PUSH_CHAR: ERROR!!! slen(%d) >= maxstreamsize(%d)\n", slen, \
597597
self->stream_len)) \
598598
int bufsize = 100; \
599-
self->error_msg = (char *)malloc(bufsize); \
599+
self->error_msg = (char*) malloc(bufsize); \
600600
snprintf(self->error_msg, bufsize, \
601601
"Buffer overflow caught - possible malformed input file.\n");\
602602
return PARSER_OUT_OF_MEMORY; \

0 commit comments

Comments
 (0)