[pcre-dev] [Bug 1504] DFA matching seems to have regressed, …

Página superior
Eliminar este mensaje
Autor: Philip Hazel
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 1504] DFA matching seems to have regressed, causing GLib test failure
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1504




--- Comment #2 from Philip Hazel <ph10@???> 2014-07-21 09:58:56 ---
On Mon, 21 Jul 2014, Simon McVittie wrote:

> However, after cutting out those test cases, DFA matching
> (g_regex_match_all()/pcre_dfa_exec()) still seems to have regressed. I have
> reduced one of the failing cases down to a "pure PCRE" test-case which passes
> with Debian's pcre3/8.31-5, but fails with 8.35-1 and 8.35-2: matching the
> regex "a+" against target string "aaa" only matches once, "aaa", whereas it
> should have matched three times at offset 0, "aaa", "aa" and "a".


I have not checked this, but I am 99% certain this is an effect of the
improved auto-possessification. The pattern "a+" will be compiled as
"a++" and therefore will match only once. If you don't want this effect,
you need to set the NO_AUTO_POSSESS option (/O in pcretest).

It is good that you are doing all these tests, however!

Philip


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email