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 <[email protected]>
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