From dc5f96663597572f694147aeec3525003c351123 Mon Sep 17 00:00:00 2001 From: Zoltan Herczeg Date: Fri, 10 Sep 2021 10:00:47 +0000 Subject: [PATCH] Re-enable an optimization which was unintentionally disabled in 10.35. --- ChangeLog | 2 ++ src/pcre2_jit_compile.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index aa51cbf..7a6fc39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -52,6 +52,8 @@ However, just in case anybody was relying on the old behaviour, there is an option called PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK that enables the old behaviour. An option has also been added to pcre2grep to enable this. +7. Re-enable an optimization which was unintentionally disabled in 10.35. + Version 10.37 26-May-2021 ------------------------- diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c index a3f7ebe..495920d 100644 --- a/src/pcre2_jit_compile.c +++ b/src/pcre2_jit_compile.c @@ -11228,7 +11228,7 @@ early_fail_type = (early_fail_ptr & 0x7); early_fail_ptr >>= 3; /* During recursion, these optimizations are disabled. */ -if (common->early_fail_start_ptr == 0) +if (common->early_fail_start_ptr == 0 && common->fast_forward_bc_ptr == NULL) { early_fail_ptr = 0; early_fail_type = type_skip;