Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit 3a648d1

Browse files
committed
parser: Make xmlParseChunk return an error if parser was stopped
This regressed after enhancing the disableSAX member in 2.13. Should fix #777.
1 parent 3b1742b commit 3a648d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11575,7 +11575,7 @@ xmlParseChunk(xmlParserCtxtPtr ctxt, const char *chunk, int size,
1157511575
xmlHaltParser(ctxt);
1157611576
}
1157711577

11578-
if ((ctxt->errNo != XML_ERR_OK) && (ctxt->disableSAX == 1))
11578+
if ((ctxt->errNo != XML_ERR_OK) && (ctxt->disableSAX != 0))
1157911579
return(ctxt->errNo);
1158011580

1158111581
if ((end_in_lf == 1) && (ctxt->input != NULL) &&

0 commit comments

Comments
 (0)