pcre2/backport-Fix-another-oversight-in-c1306126.patch
xujing a29f481ca1 pcre2: sync patches from upstream to fix some bugs
(cherry picked from commit 82d5abb0f43f316d60eb45056565a6d02d68cb85)
2024-01-22 15:26:32 +08:00

32 lines
988 B
Diff

From 04f6668a09c51cf10fa5514019843ab0af9724c8 Mon Sep 17 00:00:00 2001
From: Philip Hazel <Philip.Hazel@gmail.com>
Date: Tue, 21 Nov 2023 15:10:34 +0000
Subject: [PATCH] Fix another oversight in c1306126
Conflict:NA
Reference:https://github.com/PCRE2Project/pcre2/commit/04f6668a09c51cf10fa5514019843ab0af9724c8
---
src/pcre2_compile.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/pcre2_compile.c b/src/pcre2_compile.c
index 9e45580..7b522c5 100644
--- a/src/pcre2_compile.c
+++ b/src/pcre2_compile.c
@@ -3108,8 +3108,11 @@ while (ptr < ptrend)
!read_repeat_counts(&tempptr, ptrend, NULL, NULL, &errorcode))))
{
if (after_manual_callout-- <= 0)
+ {
parsed_pattern = manage_callouts(thisptr, &previous_callout, auto_callout,
parsed_pattern, cb);
+ this_parsed_item = parsed_pattern; /* New start for current item */
+ }
}
/* If expect_cond_assert is 2, we have just passed (?( and are expecting an
--
2.23.0