aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/pcre/pcre_exec.c
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.ru>2022-06-30 02:55:23 +0300
committerrobot-contrib <robot-contrib@yandex-team.ru>2022-06-30 02:55:23 +0300
commit38668a308977e333cc5e46effdca46d2f68e1d5a (patch)
treecabf065d799683347a0f221ebc68bcc26960f5b2 /contrib/libs/pcre/pcre_exec.c
parent4663401fcbd66b2db83f0e5ee6171eef7bbda40f (diff)
downloadydb-38668a308977e333cc5e46effdca46d2f68e1d5a.tar.gz
Update contrib/libs/pcre to 8.45
ref:a49ad8a731cac10ec9982655e75b696555ebd6e2
Diffstat (limited to 'contrib/libs/pcre/pcre_exec.c')
-rw-r--r--contrib/libs/pcre/pcre_exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/libs/pcre/pcre_exec.c b/contrib/libs/pcre/pcre_exec.c
index 4b5cb73fea..608f437626 100644
--- a/contrib/libs/pcre/pcre_exec.c
+++ b/contrib/libs/pcre/pcre_exec.c
@@ -6,7 +6,7 @@
and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
- Copyright (c) 1997-2018 University of Cambridge
+ Copyright (c) 1997-2021 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -764,7 +764,7 @@ for (;;)
md->mark = NULL; /* In case previously set by assertion */
RMATCH(eptr, ecode + PRIV(OP_lengths)[*ecode] + ecode[1], offset_top, md,
eptrb, RM55);
- if ((rrc == MATCH_MATCH || rrc == MATCH_ACCEPT) &&
+ if ((rrc == MATCH_MATCH || rrc == MATCH_ACCEPT || rrc == MATCH_KETRPOS) &&
md->mark == NULL) md->mark = ecode + 2;
/* A return of MATCH_SKIP_ARG means that matching failed at SKIP with an