1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

parser: Rewrite push parser boundary checks

Remove inaccurate xmlParseCheckTransition check.

Remove non-incremental xmlParseGetLasts check.

Add functions that check for several boundary constructs more
accurately, keeping track of progress in ctxt->checkIndex.

Fixes #439.
This commit is contained in:
Nick Wellnhofer
2022-11-15 18:23:33 +01:00
parent 2059df5358
commit 68a6518c45
7 changed files with 362 additions and 475 deletions

View File

@@ -311,6 +311,8 @@ struct _xmlParserCtxt {
int input_id; /* we need to label inputs */
unsigned long sizeentcopy; /* volume of entity copy */
int endCheckState; /* quote state for push parser */
};
/**