changeset 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 998dbbd92ee7
children 669a52a4f948
files src/regexp_nfa.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
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;
--- a/src/version.c
+++ b/src/version.c
@@ -784,6 +784,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    907,
+/**/
     906,
 /**/
     905,