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

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