summaryrefslogtreecommitdiff
path: root/tests/pcre-invalid-utf8-input
Commit message (Collapse)AuthorAgeFilesLines
* maint: make update-copyrightJim Meyering2022-01-011-1/+1
|
* maint: run "make update-copyright"Paul Eggert2021-01-011-1/+1
|
* maint: update all copyright year number rangesJim Meyering2020-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest with copyright year adjusted. * tests/init.sh: Sync with gnulib to pick up copyright year. * bootstrap: Likewise. * doc/grep.in.1: Use "-" in copyright year ranges, not \en.
* maint: update all copyright dates via "make update-copyright"Jim Meyering2019-01-011-1/+1
| | | | * gnulib: Also update submodule for its copyright updates.
* maint: update gnulib and copyright dates for 2018Jim Meyering2018-01-061-1/+1
| | | | | | * gnulib: Update to latest. * all files: Run "make update-copyright". * bootstrap: Update from gnulib.
* maint: update gnulib and copyright dates for 2017Jim Meyering2017-01-011-1/+1
| | | | | * gnulib: Update to latest. * all files: Run "make update-copyright".
* tests: standardize on 10-second timeouts to avoid rare false failureJim Meyering2016-08-061-4/+4
| | | | | | | | | | | | | | In a parallel test run, it is not unusual to exceed a timeout of 1-3 seconds. Increase several from 3 or fewer to 10 seconds. * tests/skip-device: Increase timeout from 2 to 10 seconds. * tests/grep-dev-null-out: Likewise, but s/1/10/. * tests/pcre-invalid-utf8-input: Likewise, but s/3/10/. * tests/dfa-match: Likewise. * tests/pcre-invalid-utf8-infloop: Likewise. * tests/pcre-infloop: Likewise. * tests/max-count-overread: Likewise. * tests/invalid-multibyte-infloop: Likewise. Prompted by http://bugs.gnu.org/24159.
* maint: update copyright year, bootstrap, init.shJim Meyering2016-01-011-1/+1
| | | | | | | | Run "make update-copyright" and then... * gnulib: Update to latest. * tests/init.sh: Update from gnulib. * bootstrap: Likewise.
* maint: update copyright year ranges to include 2015Jim Meyering2015-01-011-1/+1
| | | | | Run "make update-copyright". Also, ... * grep.texi: Update manually, converting each "--" to "-".
* tests: port to libpcre sans UTF-8 supportPaul Eggert2014-11-111-1/+1
| | | | | | Problem reported by Nelson H. F. Beebe. * tests/pcre-infloop, tests/pcre-invalid-utf8-input, tests/pcre-utf8: Skip the test unless PCRE works in an en_US.UTF-8 locale.
* tests: work around older libpcre bugs when testing -P and UTF-8Paul Eggert2014-10-251-3/+5
| | | | | | | | * tests/pcre-invalid-utf8-input: Add require_timeout_ and require_compiled_in_MB_support. Put a timeout of 3 seconds on grep, to avoid having this test case loop forever with older versions of libpcre, such as those found on RHEL 6.5. Reported by Jim Meyering in: http://bugs.gnu.org/18806#34
* grep: fix -P speedup bug with empty matchPaul Eggert2014-09-161-0/+5
| | | | | | | | | * src/pcresearch.c (NSUB): New top-level constant, replacing 'nsub' within Pexecute. (Pcompile, Pexecute): Use it. (Pexecute): Don't assume sub[1] is zero after a PCRE_ERROR_BADUTF8 match failure. * tests/pcre-invalid-utf8-input: Test for this bug.
* grep: fix false matches with -P '...$' and invalid UTF-8Paul Eggert2014-09-111-1/+4
| | | | * tests/pcre-invalid-utf8-input: Add a test for that.
* grep: -P now treats invalid UTF-8 input as non-matchingPaul Eggert2014-09-091-1/+1
| | | | | | | | | Problem reported by Santiago Vila in: http://bugs.gnu.org/18266 * NEWS: Mention this. * src/pcresearch.c (Pexecute): Treat UTF-8 encoding errors as non-matching data, instead of exiting 'grep'. * tests/pcre-infloop: grep now exits with status 1, not 2. * tests/pcre-invalid-utf8-input: grep now exits with status 0, not 2.
* grep: -P now rejects invalid input sequences in UTF-8 localesPaul Eggert2014-04-211-3/+2
| | | | | | | | | | See <http://bugs.gnu.org/17245> and <http://bugs.exim.org/1468>. * NEWS: Document this. * src/pcresearch.c (Pexecute): Do not use PCRE_NO_UTF8_CHECK, as this leads to undefined behavior when the input is not UTF-8. * tests/pcre-infloop, tests/pcre-invalid-utf8-input: Exit status is now 2, not 1, when grep -P is given invalid UTF-8 data in a UTF-8 locale.
* maint: update copyright dates for 2014Jim Meyering2014-01-011-1/+1
| | | | Do that by running "make update-copyright".
* pcre: use PCRE_NO_UTF8_CHECK properlyJim Meyering2013-12-311-7/+4
| | | | | | | | | In order to obtain the behavior we want, i.e., to disable error-on-invalid-UTF-in-input, apply this PCRE option in pcre_exec, not when compiling. * src/pcresearch.c (Pexecute): Use PCRE_NO_UTF8_CHECK here, ... (Pcompile): ...rather than here. * tests/pcre-invalid-utf8-input: Adjust test case to test for this.
* grep: fix regression with -P vs. invalid UTF-8 inputJim Meyering2013-11-021-0/+25
* src/pcresearch.c (Pexecute): Don't abort upon unexpected PCRE-specific error code. Explicitly handle PCRE_ERROR_BADUTF8, and change the default to print a diagnostic including the unhandled integer PCRE error code and exit with status 2. * tests/pcre-invalid-utf8-input: New file. * tests/Makefile.am (TESTS): Add it. * NEWS (Bug fixes): Mention it. * THANKS: Update. Reported by Dave Reisner in http://bugs.gnu.org/15758.