diff src/regexp_nfa.c @ 15800:483fda269100 v8.1.0907

patch 8.1.0907: CI tests on AppVeyor are failing commit https://github.com/vim/vim/commit/5382f12c910b7f8e46acdde5488f26a86f9fcac1 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 13 01:18:38 2019 +0100 patch 8.1.0907: CI tests on AppVeyor are failing Problem: CI tests on AppVeyor are failing. Solution: Reduce the recursiveness limit for regexp.
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 Feb 2019 01:30:29 +0100
parents 481452f6687c
children f043c8931585
line wrap: on
line diff
--- 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;