[Pcre-svn] [500] code/trunk: Fix typo in pcre2_study().

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [500] code/trunk: Fix typo in pcre2_study().
Revision: 500
          http://www.exim.org/viewvc/pcre2?view=rev&revision=500
Author:   ph10
Date:     2016-02-28 14:56:50 +0000 (Sun, 28 Feb 2016)
Log Message:
-----------
Fix typo in pcre2_study().


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2_study.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2016-02-28 13:33:55 UTC (rev 499)
+++ code/trunk/ChangeLog    2016-02-28 14:56:50 UTC (rev 500)
@@ -79,7 +79,10 @@
 buffer overflow. It no longer assumes a binary zero at the end of a too-small 
 regerror() buffer.


+17. Fixed typo ("&&" for "&") in pcre2_study(). Fortunately, this could not
+actually affect anything, by sheer luck.

+
Version 10.21 12-January-2016
-----------------------------


Modified: code/trunk/src/pcre2_study.c
===================================================================
--- code/trunk/src/pcre2_study.c    2016-02-28 13:33:55 UTC (rev 499)
+++ code/trunk/src/pcre2_study.c    2016-02-28 14:56:50 UTC (rev 500)
@@ -1452,7 +1452,7 @@
           for (c = 0; c < 16; c++) re->start_bitmap[c] |= classmap[c];
           for (c = 128; c < 256; c++)
             {
-            if ((classmap[c/8] && (1 << (c&7))) != 0)
+            if ((classmap[c/8] & (1 << (c&7))) != 0)
               {
               int d = (c >> 6) | 0xc0;            /* Set bit for this starter */
               re->start_bitmap[d/8] |= (1 << (d&7));  /* and then skip on to the */