Karsten Hopp 884c18
To: vim_dev@googlegroups.com
Karsten Hopp 884c18
Subject: Patch 7.4.817
Karsten Hopp 884c18
Fcc: outbox
Karsten Hopp 884c18
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 884c18
Mime-Version: 1.0
Karsten Hopp 884c18
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 884c18
Content-Transfer-Encoding: 8bit
Karsten Hopp 884c18
------------
Karsten Hopp 884c18
Karsten Hopp 884c18
Patch 7.4.817
Karsten Hopp 884c18
Problem:    Invalid memory access in file_pat_to_reg_pat().
Karsten Hopp 884c18
Solution:   Use vim_isspace() instead of checking for a space only. (Dominique
Karsten Hopp 884c18
            Pelle)
Karsten Hopp 884c18
Files:      src/fileio.c
Karsten Hopp 884c18
Karsten Hopp 884c18
Karsten Hopp 884c18
*** ../vim-7.4.816/src/fileio.c	2015-07-28 13:33:36.846531733 +0200
Karsten Hopp 884c18
--- src/fileio.c	2015-08-11 16:18:41.130081993 +0200
Karsten Hopp 884c18
***************
Karsten Hopp 884c18
*** 10188,10194 ****
Karsten Hopp 884c18
  #endif
Karsten Hopp 884c18
  	    default:
Karsten Hopp 884c18
  		size++;
Karsten Hopp 884c18
! # ifdef  FEAT_MBYTE
Karsten Hopp 884c18
  		if (enc_dbcs != 0 && (*mb_ptr2len)(p) > 1)
Karsten Hopp 884c18
  		{
Karsten Hopp 884c18
  		    ++p;
Karsten Hopp 884c18
--- 10188,10194 ----
Karsten Hopp 884c18
  #endif
Karsten Hopp 884c18
  	    default:
Karsten Hopp 884c18
  		size++;
Karsten Hopp 884c18
! # ifdef FEAT_MBYTE
Karsten Hopp 884c18
  		if (enc_dbcs != 0 && (*mb_ptr2len)(p) > 1)
Karsten Hopp 884c18
  		{
Karsten Hopp 884c18
  		    ++p;
Karsten Hopp 884c18
***************
Karsten Hopp 884c18
*** 10277,10283 ****
Karsten Hopp 884c18
  		    reg_pat[i++] = '?';
Karsten Hopp 884c18
  		else
Karsten Hopp 884c18
  		    if (*p == ',' || *p == '%' || *p == '#'
Karsten Hopp 884c18
! 				       || *p == ' ' || *p == '{' || *p == '}')
Karsten Hopp 884c18
  			reg_pat[i++] = *p;
Karsten Hopp 884c18
  		    else if (*p == '\\' && p[1] == '\\' && p[2] == '{')
Karsten Hopp 884c18
  		    {
Karsten Hopp 884c18
--- 10277,10283 ----
Karsten Hopp 884c18
  		    reg_pat[i++] = '?';
Karsten Hopp 884c18
  		else
Karsten Hopp 884c18
  		    if (*p == ',' || *p == '%' || *p == '#'
Karsten Hopp 884c18
! 			       || vim_isspace(*p) || *p == '{' || *p == '}')
Karsten Hopp 884c18
  			reg_pat[i++] = *p;
Karsten Hopp 884c18
  		    else if (*p == '\\' && p[1] == '\\' && p[2] == '{')
Karsten Hopp 884c18
  		    {
Karsten Hopp 884c18
*** ../vim-7.4.816/src/version.c	2015-08-11 15:54:46.582211899 +0200
Karsten Hopp 884c18
--- src/version.c	2015-08-11 16:16:01.163882279 +0200
Karsten Hopp 884c18
***************
Karsten Hopp 884c18
*** 743,744 ****
Karsten Hopp 884c18
--- 743,746 ----
Karsten Hopp 884c18
  {   /* Add new patch number below this line */
Karsten Hopp 884c18
+ /**/
Karsten Hopp 884c18
+     817,
Karsten Hopp 884c18
  /**/
Karsten Hopp 884c18
Karsten Hopp 884c18
-- 
Karsten Hopp 884c18
ARTHUR:  Then who is your lord?
Karsten Hopp 884c18
WOMAN:   We don't have a lord.
Karsten Hopp 884c18
ARTHUR:  What?
Karsten Hopp 884c18
DENNIS:  I told you.  We're an anarcho-syndicalist commune.  We take it in
Karsten Hopp 884c18
         turns to act as a sort of executive officer for the week.
Karsten Hopp 884c18
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 884c18
Karsten Hopp 884c18
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 884c18
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 884c18
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 884c18
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///