diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-02-13 01:18:38 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-02-13 01:18:38 +0100 |
commit | 5382f12c910b7f8e46acdde5488f26a86f9fcac1 (patch) | |
tree | 18f360a12c91c710a0ae45a80b6c65e7f91367e1 /src/regexp_nfa.c | |
parent | e1ed53f3f95786c744d4b6c85bda4f476f67cc91 (diff) | |
download | vim-git-5382f12c910b7f8e46acdde5488f26a86f9fcac1.tar.gz |
patch 8.1.0907: CI tests on AppVeyor are failingv8.1.0907
Problem: CI tests on AppVeyor are failing.
Solution: Reduce the recursiveness limit for regexp.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r-- | src/regexp_nfa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 7c4d40757..18bc8d9a6 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -4315,7 +4315,7 @@ addstate( // This function is called recursively. When the depth is too much we run // out of stack and crash, limit recursiveness here. - if (++depth >= 10000 || subs == NULL) + if (++depth >= 5000 || subs == NULL) { --depth; return NULL; |