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

Top Page

Reply to this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2520] Error in pcre2_substitute with PCRE2_SUBSTITUTE_MATCHED
https://bugs.exim.org/show_bug.cgi?id=2520

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED


--- Comment #5 from Philip Hazel <ph10@???> ---
Further inspection of the code showed that there were a couple of error cases
where the supplied match data block might be modified. For that reason, and to
avoid complicating the code (and also for future proofing where new changes
might be added) I have chosen always to make a clone of the match data block
when PCRE2_SUBSTITUTE_MATCHED is set, whether or not there is global matching.
This code is now committed and documented (and there are more tests).

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