From 11e28e4dfb84804474a3d7a4bfb08bae8f00bc0a Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 12 Aug 2009 12:21:42 +0200 Subject: 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 --- xmlregexp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xmlregexp.c') diff --git a/xmlregexp.c b/xmlregexp.c index 73598a53..5a48c7a8 100644 --- a/xmlregexp.c +++ b/xmlregexp.c @@ -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 */ } } -- cgit v1.2.1