grep-commit
[Top][All Lists]
Advanced

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

grep branch, master, updated. v2.6.3-71-g80eab7f


From: Paolo Bonzini
Subject: grep branch, master, updated. v2.6.3-71-g80eab7f
Date: Mon, 24 May 2010 11:08:34 +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  80eab7f9725cce44f147e1332ee8d63a8628e17f (commit)
      from  f84fdb12c7e6028f83aa9b8a0bc05e8a3b68572b (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=80eab7f9725cce44f147e1332ee8d63a8628e17f


commit 80eab7f9725cce44f147e1332ee8d63a8628e17f
Author: Bruno Haible <address@hidden>
Date:   Mon May 24 13:07:07 2010 +0200

    search: Avoid out-of-bounds access.
    
    * src/dfasearch.c (EGexecute): Avoid access beyond end of buffer
    that could happen if start != beg - buf.

diff --git a/src/dfasearch.c b/src/dfasearch.c
index 6178b33..4ccb6dc 100644
--- a/src/dfasearch.c
+++ b/src/dfasearch.c
@@ -326,7 +326,7 @@ EGexecute (char const *buf, size_t size, size_t *match_size,
                 while (match <= best_match)
                   {
                     if ((match == buf || !WCHAR ((unsigned char) match[-1]))
-                        && (len == end - beg - 1
+                        && (start + len == end - buf - 1
                             || !WCHAR ((unsigned char) match[len])))
                       goto assess_pattern_match;
                     if (len > 0)

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

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]