summaryrefslogtreecommitdiff
path: root/THANKS.in
Commit message (Collapse)AuthorAgeFilesLines
* doc: say that `-f -` reads patterns from stdinJim Meyering2023-04-291-0/+1
| | | | | | | | * doc/grep.texi (Matching Control): Mention that when -f's FILE is -, grep reads patterns from stdin. * doc/grep.in.1: Likewise. * THANKS.in: Add the name. Suggested by Sebastian Carlos in https://bugs.gnu.org/63146
* tests: add a known-failing glibc-infloop testJim Meyering2023-04-091-0/+1
| | | | | | | | | * tests/glibc-infloop: New file. Based on the command from Koen Claessen reported in https://bugs.gnu.org/62483 * configure.ac (USE_INCLUDED_REGEX): define. * tests/Makefile.am (TESTS): Add the file name * THANKS.in: Add name of reporter.
* doc: remove mention of unused _N_GNU_nonoption_argv_flags_ envvarJim Meyering2023-03-091-0/+1
| | | | | | | | | * doc/grep.texi (Environment Variables): This environment variable has not been usable for decades. Remove its documentation. * doc/grep.in.1: Likewise. Reported by Emanuele Torre torreemanuele6@gmail.com in https://bugs.gnu.org/62052 * THANKS.in: Add the name.
* maint: spelling fixesPaul Eggert2023-01-161-1/+1
|
* pcre: use UCP in UTF modeCarlo Marcelo Arenas Belón2023-01-071-0/+2
| | | | | | | | | | | | | This fixes a serious bug affecting word-boundary and word-constituent regular expressions when the desired match involves non-ASCII UTF8 characters. * src/pcresearch.c: Set PCRE2_UCP together with PCRE2_UTF * tests/pcre-utf8-w: New file. * tests/Makefile.am (TESTS): Add it. * NEWS (Bug fixes): Mention this. * THANKS.in: Add Gro-Tsen and Karl Petterson. Reported by Gro-Tsen https://twitter.com/gro_tsen/status/1610972356972875777 via Karl Pettersson in https://github.com/PCRE2Project/pcre2/issues/185 This bug was present from grep-2.5, when --perl-regexp (-P) support was added.
* build: use $(PATH_SEPARATOR), not ":" to augment PATHJuan Manuel Guerrero2017-03-051-1/+0
| | | | | | | * cfg.mk (PATH): Use $(PATH_SEPARATOR), for those systems that use something other than ":". * THANKS.in: Remove name, to avoid syntax-check failure due to the duplicate, now that there is this commit.
* grep -oP: don't infloop when processing invalid UTF8 preceding a matchJim Meyering2015-12-181-0/+1
| | | | | | | | | | | | | | * src/pcresearch.c (Pexecute): When advancing SUBJECT past an encoding error, don't blindly set P to that new value, since we will soon compute SEARCH_OFFSET = P - SUBJECT, and mistakenly making that difference too small would allow us to match some previously-processed text, resulting in an infinite loop. * NEWS (Bug fixes): Mention it. * THANKS.in: Add Christian's name and email address. * tests/pcre-invalid-utf8-infloop: New file. * tests/Makefile.am (TESTS): Add it. Reported by Christian Boltz in http://debbugs.gnu.org/22181 Introduced by commit, v2.21-37-g14f8e48.
* maint: update THANKS.inJim Meyering2015-10-271-0/+2
| | | | | * THANKS.in: Add name+email of those who found and reported the bug that made grep -E '^x|x$' match any "x".
* grep -F: fix a heap buffer (read) overrunYuliy Pisetsky2015-01-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | grep's read buffer is often filled to its full size, except when reading the final buffer of a file. In that case, the number of bytes read may be far less than the size of the buffer. However, for certain unusual pattern/text combinations, grep -F would mistakenly examine bytes in that uninitialized region of memory when searching for a match. With carefully chosen inputs, one can cause grep -F to read beyond the end of that buffer altogether. This problem arose via commit v2.18-90-g73893ff with the introduction of a more efficient heuristic using what is now the memchr_kwset function. The use of that function in bmexec_trans could leave TP much larger than EP, and the subsequent call to bm_delta2_search would mistakenly access beyond end of the main input read buffer. * src/kwset.c (bmexec_trans): When TP reaches or exceeds EP, do not call bm_delta2_search. * tests/kwset-abuse: New file. * tests/Makefile.am (TESTS): Add it. * THANKS.in: Update. * NEWS (Bug fixes): Mention it. Prior to this patch, this command would trigger a UMR: printf %0360db 0 | valgrind src/grep -F $(printf %019dXb 0) Use of uninitialised value of size 8 at 0x4142BE: bmexec_trans (kwset.c:657) by 0x4143CA: bmexec (kwset.c:678) by 0x414973: kwsexec (kwset.c:848) by 0x414DC4: Fexecute (kwsearch.c:128) by 0x404E2E: grepbuf (grep.c:1238) by 0x4054BF: grep (grep.c:1417) by 0x405CEB: grepdesc (grep.c:1645) by 0x405EC1: grep_command_line_arg (grep.c:1692) by 0x4077D4: main (grep.c:2570) See the accompanying test for how to trigger the heap buffer overrun. Thanks to Nima Aghdaii for testing and finding numerous ways to break early iterations of this patch.
* maint: generate distributed THANKS from VC'd THANKS.inJim Meyering2014-06-271-0/+99
* Makefile.am (THANKS): New rule. * THANKS.in: New file. * THANKS: Remove. Now it's generated from the combination of THANKS.in and git logs. * .mailmap: New file. * cfg.mk (sc_THANKS_in_duplicates): New syntax-check rule, from coreutils. * .gitignore: Add THANKS. * thanks-gen: New file, from coreutils.