35 lines
955 B
Diff
35 lines
955 B
Diff
From 9987891e7a0c885a66161cc1e62f94f314281fe7 Mon Sep 17 00:00:00 2001
|
|
From: ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>
|
|
Date: Mon, 13 May 2019 16:38:18 +0000
|
|
Subject: [PATCH 2/2] Forgot this file in previous commit. Fixes JIT non-UTF
|
|
bug.
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1092 6239d852-aaf2-0410-a92c-79f79f948069
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
---
|
|
src/pcre2_jit_compile.c | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c
|
|
index ae0fbcf..a19ce8b 100644
|
|
--- a/src/pcre2_jit_compile.c
|
|
+++ b/src/pcre2_jit_compile.c
|
|
@@ -8571,7 +8571,10 @@ int lgb, rgb, ricount;
|
|
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;
|
|
--
|
|
2.20.1
|
|
|