summaryrefslogtreecommitdiff
path: root/src/sljit
diff options
context:
space:
mode:
authorzherczeg <zherczeg@6239d852-aaf2-0410-a92c-79f79f948069>2019-11-19 12:25:32 +0000
committerzherczeg <zherczeg@6239d852-aaf2-0410-a92c-79f79f948069>2019-11-19 12:25:32 +0000
commit3255e7c4bb6f7317e9e119718b254a13567909ba (patch)
treefb2278dfc79030875c7178c7faaed7b7867fb748 /src/sljit
parentcaea50f5361df91b5420a12d53bde45730d18998 (diff)
downloadpcre2-3255e7c4bb6f7317e9e119718b254a13567909ba.tar.gz
Fixed the incorrect computation of jump sizes on x86 CPUs in JIT.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1187 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/sljit')
-rw-r--r--src/sljit/sljitNativeX86_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sljit/sljitNativeX86_common.c b/src/sljit/sljitNativeX86_common.c
index 26e8475..6296da5 100644
--- a/src/sljit/sljitNativeX86_common.c
+++ b/src/sljit/sljitNativeX86_common.c
@@ -2515,6 +2515,7 @@ SLJIT_API_FUNC_ATTRIBUTE struct sljit_jump* sljit_emit_jump(struct sljit_compile
jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump));
PTR_FAIL_IF_NULL(jump);
set_jump(jump, compiler, (type & SLJIT_REWRITABLE_JUMP) | ((type & 0xff) << TYPE_SHIFT));
+ type &= 0xff;
/* Worst case size. */
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)