diff --git a/src/pcre2_dfa_match.c b/src/pcre2_dfa_match.c index e90c984fd..576840737 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); } diff --git a/testdata/testinput2 b/testdata/testinput2 index a5079ce6d..ba292d890 100644 --- a/testdata/testinput2 +++ b/testdata/testinput2 @@ -5988,6 +5988,12 @@ a)"xI /(?