b317814
To: vim_dev@googlegroups.com
b317814
Subject: Patch 7.3.270
b317814
Fcc: outbox
b317814
From: Bram Moolenaar <Bram@moolenaar.net>
b317814
Mime-Version: 1.0
b317814
Content-Type: text/plain; charset=UTF-8
b317814
Content-Transfer-Encoding: 8bit
b317814
------------
b317814
b317814
Patch 7.3.270
b317814
Problem:    Illegal memory access.
b317814
Solution:   Swap conditions. (Dominique Pelle)
b317814
Files:	    src/ops.c
b317814
b317814
b317814
*** ../vim-7.3.269/src/ops.c	2011-07-15 17:51:30.000000000 +0200
b317814
--- src/ops.c	2011-08-10 12:07:22.000000000 +0200
b317814
***************
b317814
*** 6311,6317 ****
b317814
      *wc += words;
b317814
  
b317814
      /* Add eol_size if the end of line was reached before hitting limit. */
b317814
!     if (line[i] == NUL && i < limit)
b317814
      {
b317814
  	i += eol_size;
b317814
  	chars += eol_size;
b317814
--- 6311,6317 ----
b317814
      *wc += words;
b317814
  
b317814
      /* Add eol_size if the end of line was reached before hitting limit. */
b317814
!     if (i < limit && line[i] == NUL)
b317814
      {
b317814
  	i += eol_size;
b317814
  	chars += eol_size;
b317814
*** ../vim-7.3.269/src/version.c	2011-08-04 20:31:50.000000000 +0200
b317814
--- src/version.c	2011-08-10 12:09:30.000000000 +0200
b317814
***************
b317814
*** 711,712 ****
b317814
--- 711,714 ----
b317814
  {   /* Add new patch number below this line */
b317814
+ /**/
b317814
+     270,
b317814
  /**/
b317814
b317814
-- 
b317814
An indication you must be a manager:
b317814
You give constructive feedback to your dog.
b317814
b317814
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
b317814
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
b317814
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
b317814
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///