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