[Pcre-svn] [1059] code/trunk: Fix word boundary in JIT compi…

Página superior
Eliminar este mensaje
Autor: Subversion repository
Fecha:  
A: pcre-svn
Asunto: [Pcre-svn] [1059] code/trunk: Fix word boundary in JIT compiler.
Revision: 1059
          http://www.exim.org/viewvc/pcre2?view=rev&revision=1059
Author:   zherczeg
Date:     2019-01-17 11:47:59 +0000 (Thu, 17 Jan 2019)
Log Message:
-----------
Fix word boundary in JIT compiler. Patch by Mike Munday.


Modified Paths:
--------------
    code/trunk/ChangeLog
    code/trunk/src/pcre2_jit_compile.c


Modified: code/trunk/ChangeLog
===================================================================
--- code/trunk/ChangeLog    2019-01-04 16:41:32 UTC (rev 1058)
+++ code/trunk/ChangeLog    2019-01-17 11:47:59 UTC (rev 1059)
@@ -112,7 +112,9 @@
 sequences such as \eX when they appeared invalidly in a character class. Now
 the option applies only to unrecognized or malformed escape sequences.


+28. Fix word boundary in JIT compiler. Patch by Mike Munday.

+
Version 10.32 10-September-2018
-------------------------------


Modified: code/trunk/src/pcre2_jit_compile.c
===================================================================
--- code/trunk/src/pcre2_jit_compile.c    2019-01-04 16:41:32 UTC (rev 1058)
+++ code/trunk/src/pcre2_jit_compile.c    2019-01-17 11:47:59 UTC (rev 1059)
@@ -6841,7 +6841,7 @@
 set_jumps(skipread_list, LABEL());


OP1(SLJIT_MOV, TMP1, 0, SLJIT_MEM1(SLJIT_SP), LOCALS0);
-OP2(SLJIT_XOR, TMP2, 0, TMP2, 0, TMP3, 0);
+OP2(SLJIT_XOR | SLJIT_SET_Z, TMP2, 0, TMP2, 0, TMP3, 0);
sljit_emit_fast_return(compiler, TMP1, 0);

#ifdef SUPPORT_UNICODE
@@ -6856,7 +6856,6 @@
return;
}
#endif /* SUPPORT_UNICODE */
-SLJIT_ASSERT(invalid_utf == NULL);
}

static BOOL optimize_class_ranges(compiler_common *common, const sljit_u8 *bits, BOOL nclass, BOOL invert, jump_list **backtracks)