Karsten Hopp 5ba89b
To: vim_dev@googlegroups.com
Karsten Hopp 5ba89b
Subject: Patch 7.3.348
Karsten Hopp 5ba89b
Fcc: outbox
Karsten Hopp 5ba89b
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 5ba89b
Mime-Version: 1.0
Karsten Hopp 5ba89b
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 5ba89b
Content-Transfer-Encoding: 8bit
Karsten Hopp 5ba89b
------------
Karsten Hopp 5ba89b
Karsten Hopp 5ba89b
Patch 7.3.348
Karsten Hopp 5ba89b
Problem:    "call range(1, 947948399)" causes a crash. (ZyX)
Karsten Hopp 5ba89b
Solution:   Avoid a loop in the out of memory message.
Karsten Hopp 5ba89b
Files:	    src/misc2.c
Karsten Hopp 5ba89b
Karsten Hopp 5ba89b
Karsten Hopp 5ba89b
*** ../vim-7.3.347/src/misc2.c	2011-08-19 22:28:58.000000000 +0200
Karsten Hopp 5ba89b
--- src/misc2.c	2011-10-26 11:17:26.000000000 +0200
Karsten Hopp 5ba89b
***************
Karsten Hopp 5ba89b
*** 1012,1019 ****
Karsten Hopp 5ba89b
      {
Karsten Hopp 5ba89b
  	/* Don't hide this message */
Karsten Hopp 5ba89b
  	emsg_silent = 0;
Karsten Hopp 5ba89b
! 	EMSGN(_("E342: Out of memory!  (allocating %lu bytes)"), size);
Karsten Hopp 5ba89b
  	did_outofmem_msg = TRUE;
Karsten Hopp 5ba89b
      }
Karsten Hopp 5ba89b
  }
Karsten Hopp 5ba89b
  
Karsten Hopp 5ba89b
--- 1012,1023 ----
Karsten Hopp 5ba89b
      {
Karsten Hopp 5ba89b
  	/* Don't hide this message */
Karsten Hopp 5ba89b
  	emsg_silent = 0;
Karsten Hopp 5ba89b
! 
Karsten Hopp 5ba89b
! 	/* Must come first to avoid coming back here when printing the error
Karsten Hopp 5ba89b
! 	 * message fails, e.g. when setting v:errmsg. */
Karsten Hopp 5ba89b
  	did_outofmem_msg = TRUE;
Karsten Hopp 5ba89b
+ 
Karsten Hopp 5ba89b
+ 	EMSGN(_("E342: Out of memory!  (allocating %lu bytes)"), size);
Karsten Hopp 5ba89b
      }
Karsten Hopp 5ba89b
  }
Karsten Hopp 5ba89b
  
Karsten Hopp 5ba89b
*** ../vim-7.3.347/src/version.c	2011-10-26 11:36:21.000000000 +0200
Karsten Hopp 5ba89b
--- src/version.c	2011-10-26 11:38:33.000000000 +0200
Karsten Hopp 5ba89b
***************
Karsten Hopp 5ba89b
*** 716,717 ****
Karsten Hopp 5ba89b
--- 716,719 ----
Karsten Hopp 5ba89b
  {   /* Add new patch number below this line */
Karsten Hopp 5ba89b
+ /**/
Karsten Hopp 5ba89b
+     348,
Karsten Hopp 5ba89b
  /**/
Karsten Hopp 5ba89b
Karsten Hopp 5ba89b
-- 
Karsten Hopp 5ba89b
A fool learns from his mistakes, a wise man from someone else's.
Karsten Hopp 5ba89b
Karsten Hopp 5ba89b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 5ba89b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 5ba89b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 5ba89b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///