[pcre-dev] [Bug 2399] PHP segmentation fault on preg_match()

トップ ページ
このメッセージを削除
著者: admin
日付:  
To: pcre-dev
題目: [pcre-dev] [Bug 2399] PHP segmentation fault on preg_match()
https://bugs.exim.org/show_bug.cgi?id=2399

Philip Hazel <ph10@???> changed:

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


--- Comment #5 from Philip Hazel <ph10@???> ---
I took a quick look at the code and it's a trivial oversight bug. I've fixed it
and committed the patch. Here it is (for 10.33):

--- src/pcre2_jit_compile.c     (revision 1089)
+++ src/pcre2_jit_compile.c     (working copy)
@@ -8571,7 +8571,10 @@
 PCRE2_SPTR bptr;
 uint32_t c;


-GETCHARINC(c, cc);
+/* Patch by PH */
+/* GETCHARINC(c, cc); */
+
+c = *cc++;
#if PCRE2_CODE_UNIT_WIDTH == 32
if (c >= 0x110000)
return NULL;

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