jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.054

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