summaryrefslogtreecommitdiff
path: root/libs/Pcre16/src/pcre_exec.c
diff options
context:
space:
mode:
authordartraiden <wowemuh@gmail.com>2018-06-01 00:45:43 +0300
committerdartraiden <wowemuh@gmail.com>2018-06-01 00:45:43 +0300
commit3ee286f10bdb360049dafc8fb211b4162976fd03 (patch)
treec4fca1dc83a270f123bb2f3b6d4e9f051b2e4c54 /libs/Pcre16/src/pcre_exec.c
parent8bb434fd79e908749f312a54ff1dffd40cfc81b2 (diff)
libs/Pcre16: update to 8.42
Diffstat (limited to 'libs/Pcre16/src/pcre_exec.c')
-rw-r--r--libs/Pcre16/src/pcre_exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/Pcre16/src/pcre_exec.c b/libs/Pcre16/src/pcre_exec.c
index 1a9bdd546e..3fd58cbe31 100644
--- a/libs/Pcre16/src/pcre_exec.c
+++ b/libs/Pcre16/src/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-2014 University of Cambridge
+ Copyright (c) 1997-2018 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -2305,7 +2305,7 @@ for (;;)
case OP_ANY:
if (IS_NEWLINE(eptr)) RRETURN(MATCH_NOMATCH);
if (md->partial != 0 &&
- eptr + 1 >= md->end_subject &&
+ eptr == md->end_subject - 1 &&
NLBLOCK->nltype == NLTYPE_FIXED &&
NLBLOCK->nllen == 2 &&
UCHAR21TEST(eptr) == NLBLOCK->nl[0])
@@ -3053,7 +3053,7 @@ for (;;)
{
RMATCH(eptr, ecode, offset_top, md, eptrb, RM18);
if (rrc != MATCH_NOMATCH) RRETURN(rrc);
- if (eptr-- == pp) break; /* Stop if tried at original pos */
+ if (eptr-- <= pp) break; /* Stop if tried at original pos */
BACKCHAR(eptr);
}
}
@@ -3210,7 +3210,7 @@ for (;;)
{
RMATCH(eptr, ecode, offset_top, md, eptrb, RM21);
if (rrc != MATCH_NOMATCH) RRETURN(rrc);
- if (eptr-- == pp) break; /* Stop if tried at original pos */
+ if (eptr-- <= pp) break; /* Stop if tried at original pos */
#ifdef SUPPORT_UTF
if (utf) BACKCHAR(eptr);
#endif