67a9cf6
To: vim_dev@googlegroups.com
67a9cf6
Subject: Patch 7.3.243
67a9cf6
Fcc: outbox
67a9cf6
From: Bram Moolenaar <Bram@moolenaar.net>
67a9cf6
Mime-Version: 1.0
67a9cf6
Content-Type: text/plain; charset=UTF-8
67a9cf6
Content-Transfer-Encoding: 8bit
67a9cf6
------------
67a9cf6
67a9cf6
Patch 7.3.243
67a9cf6
Problem:    Illegal memory access in readline().
67a9cf6
Solution:   Swap the conditions. (Dominique Pelle)
67a9cf6
Files:	    src/eval.c
67a9cf6
67a9cf6
67a9cf6
*** ../vim-7.3.242/src/eval.c	2011-07-07 16:20:45.000000000 +0200
67a9cf6
--- src/eval.c	2011-07-07 17:32:16.000000000 +0200
67a9cf6
***************
67a9cf6
*** 14318,14324 ****
67a9cf6
  	tolist = 0;
67a9cf6
  	for ( ; filtd < buflen || readlen <= 0; ++filtd)
67a9cf6
  	{
67a9cf6
! 	    if (buf[filtd] == '\n' || readlen <= 0)
67a9cf6
  	    {
67a9cf6
  		/* In binary mode add an empty list item when the last
67a9cf6
  		 * non-empty line ends in a '\n'. */
67a9cf6
--- 14318,14324 ----
67a9cf6
  	tolist = 0;
67a9cf6
  	for ( ; filtd < buflen || readlen <= 0; ++filtd)
67a9cf6
  	{
67a9cf6
! 	    if (readlen <= 0 || buf[filtd] == '\n')
67a9cf6
  	    {
67a9cf6
  		/* In binary mode add an empty list item when the last
67a9cf6
  		 * non-empty line ends in a '\n'. */
67a9cf6
*** ../vim-7.3.242/src/version.c	2011-07-07 17:15:29.000000000 +0200
67a9cf6
--- src/version.c	2011-07-07 17:32:30.000000000 +0200
67a9cf6
***************
67a9cf6
*** 711,712 ****
67a9cf6
--- 711,714 ----
67a9cf6
  {   /* Add new patch number below this line */
67a9cf6
+ /**/
67a9cf6
+     243,
67a9cf6
  /**/
67a9cf6
67a9cf6
-- 
67a9cf6
hundred-and-one symptoms of being an internet addict:
67a9cf6
261. You find diskettes in your pockets when doing laundry.
67a9cf6
67a9cf6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
67a9cf6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
67a9cf6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
67a9cf6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///