freebsd-dev/usr.bin/grep
Ian Lepore 79b05c7ff0 Fix a bug in bsdgrep that caused the program to hang in a tight loop for
some combinations of command line options and search patterns.  The code was
examining regexec flags looking for a regcomp flag value.  The fix is to
look in the struct field where the decoded regcomp flag was stored when the
regex was compiled.

With this fix, it's possible to build WITHOUT_GNU_GREP_COMPAT and
WITH_BSDGREP and have a usable GPL-free grep (which of course lacks gnugrep
extensions).  It now passes the kyua tests except for one test that requires
the -z/--null-data gnu extension, and one test involving outputting context
lines across multiple files which appears to sometimes output an extra
delimiter line ("--") between matches (a rather obscure failure of a rather
obscure feature, so bsdgrep should be generally usable now).
2016-03-13 14:53:12 +00:00
..
nls
regex Fix a bug in bsdgrep that caused the program to hang in a tight loop for 2016-03-13 14:53:12 +00:00
tests DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
file.c Fix xz handling for files larger than 32K. 2015-01-21 01:11:37 +00:00
grep.1 mdoc: minor paragraph fixes. 2014-02-08 13:37:02 +00:00
grep.c bsdgrep: fix regression in the -f option since r268799 2015-03-21 00:21:30 +00:00
grep.h Various style(9) fixes and typos in grep, sort and patch. 2014-04-21 22:52:18 +00:00
Makefile Bump GCC max-inline-insns-single in libiconv_modules and grep 2015-07-26 00:11:04 +00:00
Makefile.depend new depends 2015-06-16 23:37:19 +00:00
queue.c grep: fix some memory leaks. 2014-07-17 15:59:13 +00:00
util.c - Do not look for more matching lines if -L is specified 2014-08-18 12:29:28 +00:00