[pcre-dev] [Bug 1494] \Q..\E inside character class interpre…

トップ ページ
このメッセージを削除
著者: Philip Hazel
日付:  
To: pcre-dev
題目: [pcre-dev] [Bug 1494] \Q..\E inside character class interprets contents as literal sequence
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1494

Philip Hazel <ph10@???> changed:

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





--- Comment #4 from Philip Hazel <ph10@???> 2014-06-18 18:17:52 ---
This was another silly bug. I've committed the patch:

--- pcre_compile.c      (revision 1485)
+++ pcre_compile.c      (working copy)
@@ -5325,7 +5325,7 @@
       whatever repeat count may follow. In the case of reqchar, save the
       previous value for reinstating. */


-      if (class_one_char == 1 && ptr[1] == CHAR_RIGHT_SQUARE_BRACKET)
+      if (!inescq && class_one_char == 1 && ptr[1] ==
CHAR_RIGHT_SQUARE_BRACKET)
         {
         ptr++;
         zeroreqchar = reqchar;



--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email