diff options
author | Jim Meyering <meyering@fb.com> | 2015-12-18 15:21:32 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2015-12-18 16:28:49 -0800 |
commit | abc6e54e759f7bd224e687c796aa8c89a6d091fa (patch) | |
tree | 8ccfac4e93f0e260181100f4e43adeb14f25b04c /THANKS.in | |
parent | e938d22e2131972a6e9eaddbf850c6a04a4f750c (diff) | |
download | grep-abc6e54e759f7bd224e687c796aa8c89a6d091fa.tar.gz |
grep -oP: don't infloop when processing invalid UTF8 preceding a match
* 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.
Diffstat (limited to 'THANKS.in')
-rw-r--r-- | THANKS.in | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18,6 +18,7 @@ Ben Elliston bje@cygnus.com Bernd Strieder strieder@student.uni-kl.de Bob Proulx rwp@hprwp.fc.hp.com Brian Youmans 3diff@gnu.org +Christian Boltz grep-bug@cboltz.de Christian Groessler cpg@aladdin.de Dagobert Michelsen dam@opencsw.org Daisuke GOTO gotoh@m-design.com |