diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2018-01-01 15:05:27 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2018-01-01 15:05:27 +0000 |
commit | 3578b396df0419d644b9057e8b92f5002b771a45 (patch) | |
tree | bd0268dac2d4670dd78ddc7a6b92cecd429f750a /src/pcre2_match.c | |
parent | 1b5d77c6edc5ee8e8fe5c96bf9cad5798d6ce36c (diff) | |
download | pcre2-3578b396df0419d644b9057e8b92f5002b771a45.tar.gz |
Small tidy to start of match optimizations.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@901 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_match.c')
-rw-r--r-- | src/pcre2_match.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pcre2_match.c b/src/pcre2_match.c index c6b6975..34ce747 100644 --- a/src/pcre2_match.c +++ b/src/pcre2_match.c @@ -6526,6 +6526,14 @@ for(;;) if ((start_bits[c/8] & (1 << (c&7))) != 0) break; start_match++; } + + /* See comment above in first_cu checking about the next few lines. */ + + if (!mb->partial && start_match >= mb->end_subject) + { + rc = MATCH_NOMATCH; + break; + } } } /* End first code unit handling */ |