596b74b
To: vim_dev@googlegroups.com
596b74b
Subject: Patch 7.4.054
596b74b
Fcc: outbox
596b74b
From: Bram Moolenaar <Bram@moolenaar.net>
596b74b
Mime-Version: 1.0
596b74b
Content-Type: text/plain; charset=UTF-8
596b74b
Content-Transfer-Encoding: 8bit
596b74b
------------
596b74b
596b74b
Patch 7.4.054
596b74b
Problem:    Reading past end of the 'stl' string.
596b74b
Solution:   Don't increment pointer when already at the NUL. (Christian
596b74b
            Brabandt)
596b74b
Files:      src/buffer.c
596b74b
596b74b
596b74b
*** ../vim-7.4.053/src/buffer.c	2013-08-14 17:11:14.000000000 +0200
596b74b
--- src/buffer.c	2013-11-02 04:34:26.000000000 +0100
596b74b
***************
596b74b
*** 4062,4068 ****
596b74b
  		item[curitem].minwid = -syn_namen2id(t, (int)(s - t));
596b74b
  		curitem++;
596b74b
  	    }
596b74b
! 	    ++s;
596b74b
  	    continue;
596b74b
  	}
596b74b
  
596b74b
--- 4062,4069 ----
596b74b
  		item[curitem].minwid = -syn_namen2id(t, (int)(s - t));
596b74b
  		curitem++;
596b74b
  	    }
596b74b
! 	    if (*s != NUL)
596b74b
! 		++s;
596b74b
  	    continue;
596b74b
  	}
596b74b
  
596b74b
*** ../vim-7.4.053/src/version.c	2013-11-02 04:19:10.000000000 +0100
596b74b
--- src/version.c	2013-11-02 04:31:50.000000000 +0100
596b74b
***************
596b74b
*** 740,741 ****
596b74b
--- 740,743 ----
596b74b
  {   /* Add new patch number below this line */
596b74b
+ /**/
596b74b
+     54,
596b74b
  /**/
596b74b
596b74b
-- 
596b74b
Every person is responsible for the choices he makes.
596b74b
596b74b
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
596b74b
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
596b74b
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
596b74b
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///