pcre2/backport-Fix-oversight-in-DFA-when-changing-OP_REVERSE-also-a.patch

29 lines
865 B
Diff

From b88126f42382fa470b6480f82489303d4311ce18 Mon Sep 17 00:00:00 2001
From: Philip Hazel <Philip.Hazel@gmail.com>
Date: Thu, 16 Nov 2023 13:49:49 +0000
Subject: [PATCH] Fix oversight in DFA when changing OP_REVERSE; also add some
unrelated tests
Conflict:don't add unrelated tests
---
src/pcre2_dfa_match.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pcre2_dfa_match.c b/src/pcre2_dfa_match.c
index e90c984..5768407 100644
--- a/src/pcre2_dfa_match.c
+++ b/src/pcre2_dfa_match.c
@@ -591,7 +591,7 @@ if (*this_start_code == OP_ASSERTBACK || *this_start_code == OP_ASSERTBACK_NOT)
end_code = this_start_code;
do
{
- size_t back = (size_t)GET(end_code, 2+LINK_SIZE);
+ size_t back = (size_t)GET2(end_code, 2+LINK_SIZE);
if (back > max_back) max_back = back;
end_code += GET(end_code, 1);
}
--
2.33.0