From fd5e04a35122c62584da5a9558f3b744a2d09692 Mon Sep 17 00:00:00 2001 From: zherczeg Date: Tue, 27 Oct 2020 08:16:04 +0000 Subject: Fixed a word boundary check bug in JIT when partial matching is enabled. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1280 6239d852-aaf2-0410-a92c-79f79f948069 --- src/pcre2_jit_compile.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c index 04f0278..1977d28 100644 --- a/src/pcre2_jit_compile.c +++ b/src/pcre2_jit_compile.c @@ -6571,9 +6571,11 @@ if (common->invalid_utf) if (common->mode != PCRE2_JIT_COMPLETE) { + OP1(SLJIT_MOV, RETURN_ADDR, 0, TMP1, 0); OP1(SLJIT_MOV, TMP2, 0, STR_PTR, 0); move_back(common, NULL, TRUE); check_start_used_ptr(common); + OP1(SLJIT_MOV, TMP1, 0, RETURN_ADDR, 0); OP1(SLJIT_MOV, STR_PTR, 0, TMP2, 0); } } -- cgit v1.2.1