diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-07-26 09:22:57 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-07-26 09:23:41 -0700 |
commit | 3fb90a86a9aebe164bb4bb0e03f779ef8004d4d5 (patch) | |
tree | 1008745b7b33e71e3b413e6f0c88aaeedde42f0e /tests | |
parent | cdd82ebbebe0113d0d252b385cc84e80d8ceac3a (diff) | |
download | grep-3fb90a86a9aebe164bb4bb0e03f779ef8004d4d5.tar.gz |
tests: add Bug#27838 test case
* tests/backref-alt: New test case from a fuzzer.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/backref-alt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/backref-alt b/tests/backref-alt index d5bae5c5..7bfaf185 100755 --- a/tests/backref-alt +++ b/tests/backref-alt @@ -24,4 +24,10 @@ grep -E '0|()0|\1|0' in >out status=$? test $status -eq 2 || test $status -eq 1 || fail=1 +# This fuzz test comes from Bug#27838. +printf '\1772{\177)\216\216\n\216\216\t\0372{\177)(\037W3|\244\\\220)\0373|d{\244k\220)\0373|(|2{\177)(\037W3|\244\\\220)\0373|d{\244k\220)\0373|d{\220)(\013\0373|2{\177)\216\255\t\216\216\t\0373|$\\2\n' >pat +LC_ALL=C grep -E -f pat in >out +status=$? +test $status -eq 2 || test $status -eq 1 || fail=1 + Exit $fail |