https://bugs.exim.org/show_bug.cgi?id=2520
--- Comment #4 from Philip Hazel <p...@hermes.cam.ac.uk> --- 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. -- ## List details at https://lists.exim.org/mailman/listinfo/pcre-dev