diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-03-05 02:27:59 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-03-05 02:27:59 +0200 |
commit | dfd7749120e592299fddf2710bc336ee1000ae07 (patch) | |
tree | c0c471eaf9eecb69f2d8eddcad96f951796362cf /pcre/sljit/sljitNativeSPARC_common.c | |
parent | 1592fbd332373a110edcc28468cd8dc2b99271ef (diff) | |
download | mariadb-git-dfd7749120e592299fddf2710bc336ee1000ae07.tar.gz |
8.40
Diffstat (limited to 'pcre/sljit/sljitNativeSPARC_common.c')
-rw-r--r-- | pcre/sljit/sljitNativeSPARC_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pcre/sljit/sljitNativeSPARC_common.c b/pcre/sljit/sljitNativeSPARC_common.c index f3a33a1097e..ba77c70d521 100644 --- a/pcre/sljit/sljitNativeSPARC_common.c +++ b/pcre/sljit/sljitNativeSPARC_common.c @@ -379,6 +379,7 @@ SLJIT_API_FUNC_ATTRIBUTE void* sljit_generate_code(struct sljit_compiler *compil compiler->error = SLJIT_ERR_COMPILED; compiler->executable_size = (code_ptr - code) * sizeof(sljit_ins); + SLJIT_ENABLE_EXEC(code, code_ptr); SLJIT_CACHE_FLUSH(code, code_ptr); return code; } @@ -1295,6 +1296,7 @@ SLJIT_API_FUNC_ATTRIBUTE struct sljit_jump* sljit_emit_jump(struct sljit_compile struct sljit_jump *jump; CHECK_ERROR_PTR(); + CHECK_DYN_CODE_MOD(type & SLJIT_REWRITABLE_JUMP); CHECK_PTR(check_sljit_emit_jump(compiler, type)); jump = (struct sljit_jump*)ensure_abuf(compiler, sizeof(struct sljit_jump)); @@ -1422,6 +1424,7 @@ SLJIT_API_FUNC_ATTRIBUTE struct sljit_const* sljit_emit_const(struct sljit_compi struct sljit_const *const_; CHECK_ERROR_PTR(); + CHECK_DYN_CODE_MOD(1); CHECK_PTR(check_sljit_emit_const(compiler, dst, dstw, init_value)); ADJUST_LOCAL_OFFSET(dst, dstw); |