]> git.pld-linux.org Git - packages/pcre.git/blob - pcre-8.42-Fix-subject-buffer-overread-in-JIT.patch
1b649022cf2b9a32b24995fc52bd0e71d257de45
[packages/pcre.git] / pcre-8.42-Fix-subject-buffer-overread-in-JIT.patch
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.
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
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.
11 ---
12  pcre_jit_compile.c | 2 +-
13
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)
19  #ifdef SUPPORT_UTF
20        && !common->utf
21  #endif
22 -      )
23 +      && type != OP_ANYNL && type != OP_EXTUNI)
24      {
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));
27 -- 
28 2.17.2
29
This page took 0.122637 seconds and 2 git commands to generate.