[pcre-dev] [Bug 2428] PCRE did not return any error and no m…

Αρχική Σελίδα
Delete this message
Συντάκτης: admin
Ημερομηνία:  
Προς: pcre-dev
Αντικείμενο: [pcre-dev] [Bug 2428] PCRE did not return any error and no matches string, that must be matched
https://bugs.exim.org/show_bug.cgi?id=2428

Philip Hazel <ph10@???> changed:

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


--- Comment #1 from Philip Hazel <ph10@???> ---
The bug was in computing the minimum length of a group when one of its branches
exceeded 65535, which is the maximum minimum length that is recorded. Here is a
simple patch that fixes this, but inelegantly. I have committed a somewhat more
elegant patch to the development source. Thank you for the report.


--- pcre2-10.33/src/pcre2_study.c  2019-04-12 15:29:01.000000000 +0100
+++ pcre2_study.c       2019-08-03 09:31:58.164838180 +0100
@@ -136,7 +136,7 @@
   PCRE2_UCHAR *cs, *ce;
   PCRE2_UCHAR op = *cc;


- if (branchlength >= UINT16_MAX) return UINT16_MAX;
+ if (branchlength >= UINT16_MAX) branchlength = UINT16_MAX;

switch (op)

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