[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep branch, master, updated. v2.20-54-g4a9a211
From: |
Paul Eggert |
Subject: |
grep branch, master, updated. v2.20-54-g4a9a211 |
Date: |
Sat, 04 Oct 2014 16:37:13 +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 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 <address@hidden>
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- grep branch, master, updated. v2.20-54-g4a9a211,
Paul Eggert <=