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 4a9a21121c9156077a77a8587f8c43f8b940d259 (commit)
from 054fed46cbaf92349a9691592d8a8d211c0cc1be (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=4a9a21121c9156077a77a8587f8c43f8b940d259
commit 4a9a21121c9156077a77a8587f8c43f8b940d259
Author: Norihiro Tanaka <[email protected]>
Date: Fri Oct 3 07:53:06 2014 +0900
grep: fix subscript error when testing whether empty lines match
src/grep.c (grep): When testing whether an empty line matches,
make the input buffer one byte longer, as dfaexec uses that
for a sentinel.
diff --git a/src/grep.c b/src/grep.c
index bb5ba1c..7475ea1 100644
--- a/src/grep.c
+++ b/src/grep.c
@@ -2513,8 +2513,9 @@ main (int argc, char **argv)
compile (keys, keycc);
free (keys);
+ char eolbytes[2] = { eolbyte };
size_t match_size;
- skip_empty_lines = ((execute (&eolbyte, 1, &match_size, NULL) == 0)
+ skip_empty_lines = ((execute (eolbytes, 1, &match_size, NULL) == 0)
== out_invert);
if ((argc - optind > 1 && !no_filenames) || with_filenames)
-----------------------------------------------------------------------
Summary of changes:
src/grep.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
hooks/post-receive
--
grep