Karsten Hopp 8e5fba
To: vim_dev@googlegroups.com
Karsten Hopp 8e5fba
Subject: Patch 7.4.719
Karsten Hopp 8e5fba
Fcc: outbox
Karsten Hopp 8e5fba
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8e5fba
Mime-Version: 1.0
Karsten Hopp 8e5fba
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8e5fba
Content-Transfer-Encoding: 8bit
Karsten Hopp 8e5fba
------------
Karsten Hopp 8e5fba
Karsten Hopp 8e5fba
Patch 7.4.719
Karsten Hopp 8e5fba
Problem:    Overflow when adding MAXCOL to a pointer.
Karsten Hopp 8e5fba
Solution:   Subtract pointers instead. (James McCoy)
Karsten Hopp 8e5fba
Files:      src/screen.c
Karsten Hopp 8e5fba
Karsten Hopp 8e5fba
Karsten Hopp 8e5fba
*** ../vim-7.4.718/src/screen.c	2015-04-21 18:33:33.902675797 +0200
Karsten Hopp 8e5fba
--- src/screen.c	2015-05-04 16:02:20.530421566 +0200
Karsten Hopp 8e5fba
***************
Karsten Hopp 8e5fba
*** 4341,4347 ****
Karsten Hopp 8e5fba
  			  || (mb_utf8 && mb_c == 160)
Karsten Hopp 8e5fba
  #endif
Karsten Hopp 8e5fba
  			 ) && lcs_nbsp)
Karsten Hopp 8e5fba
! 			|| (c == ' ' && lcs_space && ptr <= line + trailcol)))
Karsten Hopp 8e5fba
  	    {
Karsten Hopp 8e5fba
  		c = (c == ' ') ? lcs_space : lcs_nbsp;
Karsten Hopp 8e5fba
  		if (area_attr == 0 && search_attr == 0)
Karsten Hopp 8e5fba
--- 4341,4347 ----
Karsten Hopp 8e5fba
  			  || (mb_utf8 && mb_c == 160)
Karsten Hopp 8e5fba
  #endif
Karsten Hopp 8e5fba
  			 ) && lcs_nbsp)
Karsten Hopp 8e5fba
! 			|| (c == ' ' && lcs_space && ptr - line <= trailcol)))
Karsten Hopp 8e5fba
  	    {
Karsten Hopp 8e5fba
  		c = (c == ' ') ? lcs_space : lcs_nbsp;
Karsten Hopp 8e5fba
  		if (area_attr == 0 && search_attr == 0)
Karsten Hopp 8e5fba
*** ../vim-7.4.718/src/version.c	2015-05-04 12:34:17.595202558 +0200
Karsten Hopp 8e5fba
--- src/version.c	2015-05-04 16:04:11.589169466 +0200
Karsten Hopp 8e5fba
***************
Karsten Hopp 8e5fba
*** 743,744 ****
Karsten Hopp 8e5fba
--- 743,746 ----
Karsten Hopp 8e5fba
  {   /* Add new patch number below this line */
Karsten Hopp 8e5fba
+ /**/
Karsten Hopp 8e5fba
+     719,
Karsten Hopp 8e5fba
  /**/
Karsten Hopp 8e5fba
Karsten Hopp 8e5fba
-- 
Karsten Hopp 8e5fba
For a moment, nothing happened.
Karsten Hopp 8e5fba
Then, after a second or so, nothing continued to happen.
Karsten Hopp 8e5fba
		-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
Karsten Hopp 8e5fba
Karsten Hopp 8e5fba
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8e5fba
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8e5fba
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8e5fba
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///