[pcre-dev] [Bug 2332] Different greed of subpattern and defi…

Top Page

Reply to this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2332] Different greed of subpattern and defined subrouting
https://bugs.exim.org/show_bug.cgi?id=2332

Philip Hazel <ph10@???> changed:

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


--- Comment #2 from Philip Hazel <ph10@???> ---
This turned out to be essentially an oversight in the code, with an easy fix.
Nothing to do with DEFINE; the problem occurred if a pattern's operative part
started with a subroutine call with a repeat whose minimum was zero. For
example: /(?&xxx)*ABC(?<xxx>XYZ)/. I have committed patches for both PCRE1 and
PCRE2 which fix the bug.

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