grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.19-12-g96bd310


From: Jim Meyering
Subject: grep branch, master, updated. v2.19-12-g96bd310
Date: Thu, 29 May 2014 17:43:53 +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  96bd3104b76fb157555b60d22eeb71782572ceb0 (commit)
      from  2d7d3a2d3edddf763ca79ec014c8459d80c85176 (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=96bd3104b76fb157555b60d22eeb71782572ceb0


commit 96bd3104b76fb157555b60d22eeb71782572ceb0
Author: Jim Meyering <address@hidden>
Date:   Thu May 29 09:44:41 2014 -0700

    dfa: fix off-by-one under-allocation from recent change
    
    Commit v2.19-10-gc32ff67 mistakenly made this change:
      -realloc_trans_if_necessary (d, 1);
      +realloc_trans_if_necessary (d, 0);
    which led to a heap buffer overflow.
    * src/dfa.c (dfaexec): Allocate space for one state, as before.

diff --git a/src/dfa.c b/src/dfa.c
index 0f27f85..48a83cd 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -3261,7 +3261,7 @@ dfaexec (struct dfa *d, char const *begin, char *end,
 
   if (!d->tralloc)
     {
-      realloc_trans_if_necessary (d, 0);
+      realloc_trans_if_necessary (d, 1);
       build_state (0, d);
     }
 

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

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]