grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v2.21-63-g8a33cde


From: Jim Meyering
Subject: grep branch, master, updated. v2.21-63-g8a33cde
Date: Wed, 19 Aug 2015 23:59:43 +0000

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  8a33cdeba4ba032f3d0efebf230b86971c27e158 (commit)
      from  936c904a79285c42adbfc67c508b27d5717c2936 (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=8a33cdeba4ba032f3d0efebf230b86971c27e158


commit 8a33cdeba4ba032f3d0efebf230b86971c27e158
Author: Norihiro Tanaka <address@hidden>
Date:   Tue Aug 11 00:37:00 2015 +0900

    grep: avoid use of uninitialized variable
    
    EGexecute would use "backref" uninitialized.
    While that could have no bearing on correctness, it could
    impact performance, via an unnecessary use of regexp.
    * src/dfasearch.c (EGexecute): Initialize backref.
    Reported as http://debbugs.gnu.org/21273
    Introduced by commit v2.21-55-gea0ebaa.

diff --git a/src/dfasearch.c b/src/dfasearch.c
index 8b8af06..de51321 100644
--- a/src/dfasearch.c
+++ b/src/dfasearch.c
@@ -207,7 +207,6 @@ EGexecute (char const *buf, size_t size, size_t *match_size,
 {
   char const *buflim, *beg, *end, *ptr, *match, *best_match, *mb_start;
   char eol = eolbyte;
-  int backref;
   regoff_t start;
   size_t len, best_len;
   struct kwsmatch kwsm;
@@ -227,6 +226,7 @@ EGexecute (char const *buf, size_t size, size_t *match_size,
           char const *next_beg, *dfa_beg = beg;
           size_t count = 0;
           bool exact_kwset_match = false;
+          int backref = 0;
 
           /* Try matching with KWset, if it's defined.  */
           if (kwset)

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

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


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]