Blame SOURCES/pcre-8.42-Fix-subject-buffer-overread-in-JIT.patch

563aa7
From 1aa76cb33f04fcea3127a0859450e5d18369e5e2 Mon Sep 17 00:00:00 2001
563aa7
From: zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>
563aa7
Date: Fri, 21 Sep 2018 07:34:10 +0000
563aa7
Subject: [PATCH] Fix subject buffer overread in JIT.
563aa7
MIME-Version: 1.0
563aa7
Content-Type: text/plain; charset=UTF-8
563aa7
Content-Transfer-Encoding: 8bit
563aa7
563aa7
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1740 2f5784b3-3f2a-0410-8824-cb99058d5e15
563aa7
Petr Písař: Ported to 8.42.
563aa7
---
563aa7
 pcre_jit_compile.c | 2 +-
563aa7
563aa7
diff --git a/pcre_jit_compile.c b/pcre_jit_compile.c
563aa7
index 2bad74b..bc5f9c0 100644
563aa7
--- a/pcre_jit_compile.c
563aa7
+++ b/pcre_jit_compile.c
563aa7
@@ -9002,7 +9002,7 @@ if (exact > 1)
563aa7
 #ifdef SUPPORT_UTF
563aa7
       && !common->utf
563aa7
 #endif
563aa7
-      )
563aa7
+      && type != OP_ANYNL && type != OP_EXTUNI)
563aa7
     {
563aa7
     OP2(SLJIT_ADD, TMP1, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(exact));
563aa7
     add_jump(compiler, &backtrack->topbacktracks, CMP(SLJIT_GREATER, TMP1, 0, STR_END, 0));
563aa7
-- 
563aa7
2.17.2
563aa7