[pcre-dev] [Bug 2520] Error in pcre2_substitute with PCRE2_…

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 2520] Error in pcre2_substitute with PCRE2_SUBSTITUTE_MATCHED
https://bugs.exim.org/show_bug.cgi?id=2520

--- Comment #4 from Philip Hazel <ph10@???> ---
Thanks for picking that up. Clearly the library shouldn't be freeing external
data and that is easily fixed. As far as global matching goes, I note that you
are using the two flags together, so that must be a useful combination.
However, there is no useful information to be returned in the match data after
a global substitution, because the final call to pcre2_match() will have ended
in "no match". Therefore, I think the best thing to do is indeed to take up
your final suggestion, and use an internal match data block for the second and
subsequent matches. I will do this sometime fairly soon and post here when it
is done.

--
You are receiving this mail because:
You are on the CC list for the bug.