This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  a91552594dfd94469fc7b13f059bd0da9c679099 (commit)
      from  fb9ad72522eadfb134459172a3784e55c1a296fe (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=a91552594dfd94469fc7b13f059bd0da9c679099


commit a91552594dfd94469fc7b13f059bd0da9c679099
Author: Paul Eggert <[email protected]>
Date:   Thu Sep 11 09:52:01 2014 -0700

    grep: fix false matches with -P '...$' and invalid UTF-8
    
    * src/pcresearch.c (Pexecute): Use PCRE_NOTEOL when matching
    initial substrings of a line.

diff --git a/src/pcresearch.c b/src/pcresearch.c
index 4e2ccf8..17e0e32 100644
--- a/src/pcresearch.c
+++ b/src/pcresearch.c
@@ -163,7 +163,8 @@ Pexecute (char const *buf, size_t size, size_t *match_size,
             break;
           valid_bytes = sub[0];
           e = pcre_exec (cre, extra, p, valid_bytes, 0,
-                         options | PCRE_NO_UTF8_CHECK, sub, nsub);
+                         options | PCRE_NO_UTF8_CHECK | PCRE_NOTEOL,
+                         sub, nsub);
           if (e != PCRE_ERROR_NOMATCH)
             break;
           p += valid_bytes + 1;

-----------------------------------------------------------------------

Summary of changes:
 src/pcresearch.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
grep

Reply via email to