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