d8279b0
To: vim-dev@vim.org
d8279b0
Subject: Patch 7.2.024
d8279b0
Fcc: outbox
d8279b0
From: Bram Moolenaar <Bram@moolenaar.net>
d8279b0
Mime-Version: 1.0
d8279b0
Content-Type: text/plain; charset=ISO-8859-1
d8279b0
Content-Transfer-Encoding: 8bit
d8279b0
------------
d8279b0
d8279b0
Patch 7.2.024
d8279b0
Problem:    It's possible to set 'history' to a negative value and that causes
d8279b0
	    an out-of-memory error.
d8279b0
Solution:   Check that 'history' has a positive value. (Doug Kearns)
d8279b0
Files:	    src/option.c
d8279b0
d8279b0
d8279b0
*** ../vim-7.2.023/src/option.c	Thu Jul 24 18:45:15 2008
d8279b0
--- src/option.c	Fri Sep 26 22:20:20 2008
d8279b0
***************
d8279b0
*** 7974,7979 ****
d8279b0
--- 7974,7984 ----
d8279b0
  	else /* curwin->w_p_scr > curwin->w_height */
d8279b0
  	    curwin->w_p_scr = curwin->w_height;
d8279b0
      }
d8279b0
+     if (p_hi < 0)
d8279b0
+     {
d8279b0
+ 	errmsg = e_positive;
d8279b0
+ 	p_hi = 0;
d8279b0
+     }
d8279b0
      if (p_report < 0)
d8279b0
      {
d8279b0
  	errmsg = e_positive;
d8279b0
*** ../vim-7.2.023/src/version.c	Wed Oct  1 21:09:02 2008
d8279b0
--- src/version.c	Thu Oct  2 22:47:22 2008
d8279b0
***************
d8279b0
*** 678,679 ****
d8279b0
--- 678,681 ----
d8279b0
  {   /* Add new patch number below this line */
d8279b0
+ /**/
d8279b0
+     24,
d8279b0
  /**/
d8279b0
d8279b0
-- 
d8279b0
hundred-and-one symptoms of being an internet addict:
d8279b0
127. You bring your laptop and cellular phone to church.
d8279b0
d8279b0
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
d8279b0
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
d8279b0
\\\        download, build and distribute -- http://www.A-A-P.org        ///
d8279b0
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///