mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-10-26 12:25:09 +03:00
570702 fix a bug in regexp determinism checking
* xmlregexp.c: xmlFAComputesDeterminism was bugged as it removed as coalesced transitions on with sane source destination and atoms but not looking at counters
This commit is contained in:
parent
eab3ac94c7
commit
11e28e4dfb
@ -2646,7 +2646,9 @@ xmlFAComputesDeterminism(xmlRegParserCtxtPtr ctxt) {
|
||||
continue;
|
||||
if (t2->atom != NULL) {
|
||||
if (t1->to == t2->to) {
|
||||
if (xmlFAEqualAtoms(t1->atom, t2->atom))
|
||||
if (xmlFAEqualAtoms(t1->atom, t2->atom) &&
|
||||
(t1->counter == t2->counter) &&
|
||||
(t1->count == t2->count))
|
||||
t2->to = -1; /* eliminated */
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user