summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0907
blob: 609fd5caabd58f937858e5ce8f007262dc033a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0907
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 8.1.0907
Problem:    CI tests on AppVeyor are failing.
Solution:   Reduce the recursiveness limit for regexp.
Files:	    src/regexp_nfa.c


*** ../vim-8.1.0906/src/regexp_nfa.c	2019-02-12 23:05:41.743869435 +0100
--- src/regexp_nfa.c	2019-02-13 01:16:39.783904976 +0100
***************
*** 4315,4321 ****
  
      // 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)
      {
  	--depth;
  	return NULL;
--- 4315,4321 ----
  
      // This function is called recursively.  When the depth is too much we run
      // out of stack and crash, limit recursiveness here.
!     if (++depth >= 5000 || subs == NULL)
      {
  	--depth;
  	return NULL;
*** ../vim-8.1.0906/src/version.c	2019-02-12 23:12:33.604730888 +0100
--- src/version.c	2019-02-13 01:17:47.015575460 +0100
***************
*** 785,786 ****
--- 785,788 ----
  {   /* Add new patch number below this line */
+ /**/
+     907,
  /**/

-- 
Mynd you, m00se bites Kan be pretty nasti ...
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///