mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
- valid.c: removed a state explosion exhibited by RSS
- test/valid/rss.xml result/valid/rss.xml*: added the testcase from bug #51872 Daniel
This commit is contained in:
12
valid.c
12
valid.c
@ -3654,6 +3654,18 @@ cont:
|
||||
}
|
||||
break;
|
||||
case XML_ELEMENT_CONTENT_OR:
|
||||
/*
|
||||
* Small optimization.
|
||||
*/
|
||||
if (CONT->c1->type == XML_ELEMENT_CONTENT_ELEMENT) {
|
||||
if ((NODE == NULL) ||
|
||||
(!xmlStrEqual(NODE->name, CONT->c1->name))) {
|
||||
DEPTH++;
|
||||
CONT = CONT->c2;
|
||||
goto cont;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* save the second branch 'or' branch
|
||||
*/
|
||||
|
Reference in New Issue
Block a user