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