This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".
The branch, master has been updated
via 6e7253de1dd443be5f498078e1807ddfa4d364de (commit)
from fd2d0f7165d390ce4b4d08acf25552f6635d9ecb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=6e7253de1dd443be5f498078e1807ddfa4d364de
commit 6e7253de1dd443be5f498078e1807ddfa4d364de
Author: Paul Eggert <[email protected]>
Date: Tue Apr 11 15:10:06 2023 -0700
grep: make -P survive JIT compilation failure
* src/pcresearch.c (Pcompile): Ignore failure returns
from pcre2_jit_compile.
diff --git a/src/pcresearch.c b/src/pcresearch.c
index 9e2f393..e867f49 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -243,9 +243,9 @@ Pcompile (char *pattern, idx_t size, reg_syntax_t ignored,
bool exact)
pc->mcontext = NULL;
pc->data = pcre2_match_data_create_from_pattern (pc->cre, gcontext);
- ec = pcre2_jit_compile (pc->cre, PCRE2_JIT_COMPLETE);
- if (ec && ec != PCRE2_ERROR_JIT_BADOPTION && ec != PCRE2_ERROR_NOMEMORY)
- die (EXIT_TROUBLE, 0, _("JIT internal error: %d"), ec);
+ /* Ignore any failure return from pcre2_jit_compile, as that merely
+ means JIT won't be used during matching. */
+ pcre2_jit_compile (pc->cre, PCRE2_JIT_COMPLETE);
/* The PCRE documentation says that a 32 KiB stack is the default. */
pc->jit_stack = NULL;
-----------------------------------------------------------------------
Summary of changes:
src/pcresearch.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
grep