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