summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-12-16 07:44:35 +0100
committerJim Meyering <meyering@fb.com>2018-12-16 11:21:53 -0800
commite767c4eac976a5ce2a4582950ade2b77499c2228 (patch)
tree1ff00041ba747b7696b1ea92ed8f664a0a7f4a81
parentbdb98cec2e7bf255e1d00eaf8be16299f7bf571e (diff)
downloadgrep-e767c4eac976a5ce2a4582950ade2b77499c2228.tar.gz
tests: stackoverflow: fix test failure on HardenedBSD 11
* tests/stack-overflow: Try up to 10 million opening parentheses.
-rwxr-xr-xtests/stack-overflow2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/stack-overflow b/tests/stack-overflow
index 492e959c..b80a8bed 100755
--- a/tests/stack-overflow
+++ b/tests/stack-overflow
@@ -9,7 +9,7 @@ echo grep: stack overflow > exp || framework_failure_
# Trigger that with an input regex composed solely of open parentheses,
# increasing the size of that input until grep emits the expected diagnostic.
fail=0
-for i in 1 3 5 10 20 30 40 50 100 200; do
+for i in 1 3 5 10 20 30 40 50 100 200 400 1000; do
# Create a file containing $i * 10000 open parentheses:
printf %0${i}0000d 0|tr 0 '(' > in || framework_failure_
grep -E -f in >out 2>err; st=$?