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