Blame SOURCES/7.4.599

22c937
To: vim_dev@googlegroups.com
22c937
Subject: Patch 7.4.599
22c937
Fcc: outbox
22c937
From: Bram Moolenaar <Bram@moolenaar.net>
22c937
Mime-Version: 1.0
22c937
Content-Type: text/plain; charset=UTF-8
22c937
Content-Transfer-Encoding: 8bit
22c937
------------
22c937
22c937
Patch 7.4.599
22c937
Problem:    Out-of-memory error.
22c937
Solution:   Avoid trying to allocate a negative amount of memory, use size_t
22c937
	    instead of int. (Dominique Pelle)
22c937
Files:	    src/regexp_nfa.c
22c937
22c937
22c937
*** ../vim-7.4.598/src/regexp_nfa.c	2015-01-27 12:59:51.855602435 +0100
22c937
--- src/regexp_nfa.c	2015-01-27 14:33:25.798181195 +0100
22c937
***************
22c937
*** 5408,5414 ****
22c937
      regsubs_T		*m;
22c937
  {
22c937
      int		result;
22c937
!     int		size = 0;
22c937
      int		flag = 0;
22c937
      int		go_to_nextline = FALSE;
22c937
      nfa_thread_T *t;
22c937
--- 5408,5414 ----
22c937
      regsubs_T		*m;
22c937
  {
22c937
      int		result;
22c937
!     size_t	size = 0;
22c937
      int		flag = 0;
22c937
      int		go_to_nextline = FALSE;
22c937
      nfa_thread_T *t;
22c937
*** ../vim-7.4.598/src/version.c	2015-01-27 14:09:29.625898193 +0100
22c937
--- src/version.c	2015-01-27 14:29:06.733017025 +0100
22c937
***************
22c937
*** 743,744 ****
22c937
--- 743,746 ----
22c937
  {   /* Add new patch number below this line */
22c937
+ /**/
22c937
+     599,
22c937
  /**/
22c937
22c937
-- 
22c937
You cannot have a baby in one month by getting nine women pregnant.
22c937
22c937
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
22c937
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
22c937
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
22c937
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///