grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.18-80-g5190041


From: Jim Meyering
Subject: grep branch, master, updated. v2.18-80-g5190041
Date: Fri, 18 Apr 2014 16:41:36 +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  5190041fe515743ef4545abf287d243bc025c701 (commit)
      from  03aeb1cca6bab2577666a3ce63ffe4437755af38 (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=5190041fe515743ef4545abf287d243bc025c701


commit 5190041fe515743ef4545abf287d243bc025c701
Author: Jim Meyering <address@hidden>
Date:   Fri Apr 18 09:36:23 2014 -0700

    dfa: avoid new NULL dereference
    
    * src/dfa.c (dfa_charclass_index): Restore a "+ 1" mistakenly omitted
    during recent improvements.  Introduced in v2.18-66-g6a60fd5.

diff --git a/src/dfa.c b/src/dfa.c
index eeca257..8463762 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -643,7 +643,7 @@ dfa_charclass_index (struct dfa *d, charclass const s)
   for (i = 0; i < d->cindex; ++i)
     if (equal (s, d->charclasses[i]))
       return i;
-  d->charclasses = maybe_realloc (d->charclasses, d->cindex, &d->calloc,
+  d->charclasses = maybe_realloc (d->charclasses, d->cindex + 1, &d->calloc,
                                   sizeof *d->charclasses);
   ++d->cindex;
   copyset (s, d->charclasses[i]);

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

Summary of changes:
 src/dfa.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]