mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
Do a bit of bufferization in text mode, Daniel
This commit is contained in:
3
parser.c
3
parser.c
@ -7755,7 +7755,8 @@ xmlParseChunk(xmlParserCtxtPtr ctxt, const char *chunk, int size,
|
||||
fprintf(stderr, "PP: pushed %d\n", size);
|
||||
#endif
|
||||
|
||||
xmlParseTryOrFinish(ctxt, terminate);
|
||||
if ((terminate) || (ctxt->input->buf->buffer->use > 80))
|
||||
xmlParseTryOrFinish(ctxt, terminate);
|
||||
} else if (ctxt->instate != XML_PARSER_EOF)
|
||||
xmlParseTryOrFinish(ctxt, terminate);
|
||||
if (terminate) {
|
||||
|
Reference in New Issue
Block a user