Karsten Hopp 8be7ca
To: vim_dev@googlegroups.com
Karsten Hopp 8be7ca
Subject: Patch 7.3.242
Karsten Hopp 8be7ca
Fcc: outbox
Karsten Hopp 8be7ca
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 8be7ca
Mime-Version: 1.0
Karsten Hopp 8be7ca
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 8be7ca
Content-Transfer-Encoding: 8bit
Karsten Hopp 8be7ca
------------
Karsten Hopp 8be7ca
Karsten Hopp 8be7ca
Patch 7.3.242
Karsten Hopp 8be7ca
Problem:    Illegal memory access in after_pathsep().
Karsten Hopp 8be7ca
Solution:   Check that the pointer is not at the start of the file name.
Karsten Hopp 8be7ca
	    (Dominique Pelle)
Karsten Hopp 8be7ca
Files:	    src/misc2.c
Karsten Hopp 8be7ca
Karsten Hopp 8be7ca
Karsten Hopp 8be7ca
*** ../vim-7.3.241/src/misc2.c	2011-07-07 16:20:45.000000000 +0200
Karsten Hopp 8be7ca
--- src/misc2.c	2011-07-07 17:05:41.000000000 +0200
Karsten Hopp 8be7ca
***************
Karsten Hopp 8be7ca
*** 3247,3253 ****
Karsten Hopp 8be7ca
  #if defined(FEAT_MBYTE) || defined(PROTO)
Karsten Hopp 8be7ca
  /*
Karsten Hopp 8be7ca
   * Return TRUE if "p" points to just after a path separator.
Karsten Hopp 8be7ca
!  * Take care of multi-byte characters.
Karsten Hopp 8be7ca
   * "b" must point to the start of the file name
Karsten Hopp 8be7ca
   */
Karsten Hopp 8be7ca
      int
Karsten Hopp 8be7ca
--- 3247,3253 ----
Karsten Hopp 8be7ca
  #if defined(FEAT_MBYTE) || defined(PROTO)
Karsten Hopp 8be7ca
  /*
Karsten Hopp 8be7ca
   * Return TRUE if "p" points to just after a path separator.
Karsten Hopp 8be7ca
!  * Takes care of multi-byte characters.
Karsten Hopp 8be7ca
   * "b" must point to the start of the file name
Karsten Hopp 8be7ca
   */
Karsten Hopp 8be7ca
      int
Karsten Hopp 8be7ca
***************
Karsten Hopp 8be7ca
*** 3255,3261 ****
Karsten Hopp 8be7ca
      char_u	*b;
Karsten Hopp 8be7ca
      char_u	*p;
Karsten Hopp 8be7ca
  {
Karsten Hopp 8be7ca
!     return vim_ispathsep(p[-1])
Karsten Hopp 8be7ca
  			     && (!has_mbyte || (*mb_head_off)(b, p - 1) == 0);
Karsten Hopp 8be7ca
  }
Karsten Hopp 8be7ca
  #endif
Karsten Hopp 8be7ca
--- 3255,3261 ----
Karsten Hopp 8be7ca
      char_u	*b;
Karsten Hopp 8be7ca
      char_u	*p;
Karsten Hopp 8be7ca
  {
Karsten Hopp 8be7ca
!     return p > b && vim_ispathsep(p[-1])
Karsten Hopp 8be7ca
  			     && (!has_mbyte || (*mb_head_off)(b, p - 1) == 0);
Karsten Hopp 8be7ca
  }
Karsten Hopp 8be7ca
  #endif
Karsten Hopp 8be7ca
*** ../vim-7.3.241/src/version.c	2011-07-07 16:44:33.000000000 +0200
Karsten Hopp 8be7ca
--- src/version.c	2011-07-07 17:05:49.000000000 +0200
Karsten Hopp 8be7ca
***************
Karsten Hopp 8be7ca
*** 711,712 ****
Karsten Hopp 8be7ca
--- 711,714 ----
Karsten Hopp 8be7ca
  {   /* Add new patch number below this line */
Karsten Hopp 8be7ca
+ /**/
Karsten Hopp 8be7ca
+     242,
Karsten Hopp 8be7ca
  /**/
Karsten Hopp 8be7ca
Karsten Hopp 8be7ca
-- 
Karsten Hopp 8be7ca
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 8be7ca
260. Co-workers have to E-mail you about the fire alarm to get
Karsten Hopp 8be7ca
     you out of the building.
Karsten Hopp 8be7ca
Karsten Hopp 8be7ca
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 8be7ca
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 8be7ca
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 8be7ca
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///