Karsten Hopp 17a5b4
To: vim_dev@googlegroups.com
Karsten Hopp 17a5b4
Subject: Patch 7.4.820
Karsten Hopp 17a5b4
Fcc: outbox
Karsten Hopp 17a5b4
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 17a5b4
Mime-Version: 1.0
Karsten Hopp 17a5b4
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 17a5b4
Content-Transfer-Encoding: 8bit
Karsten Hopp 17a5b4
------------
Karsten Hopp 17a5b4
Karsten Hopp 17a5b4
Patch 7.4.820
Karsten Hopp 17a5b4
Problem:    Invalid memory access in file_pat_to_reg_pat.
Karsten Hopp 17a5b4
Solution:   Avoid looking before the start of a string. (Dominique Pelle)
Karsten Hopp 17a5b4
Files:      src/fileio.c
Karsten Hopp 17a5b4
Karsten Hopp 17a5b4
Karsten Hopp 17a5b4
*** ../vim-7.4.819/src/fileio.c	2015-08-11 16:19:59.433200370 +0200
Karsten Hopp 17a5b4
--- src/fileio.c	2015-08-11 18:43:31.191888181 +0200
Karsten Hopp 17a5b4
***************
Karsten Hopp 17a5b4
*** 10210,10216 ****
Karsten Hopp 17a5b4
      else
Karsten Hopp 17a5b4
  	reg_pat[i++] = '^';
Karsten Hopp 17a5b4
      endp = pat_end - 1;
Karsten Hopp 17a5b4
!     if (*endp == '*')
Karsten Hopp 17a5b4
      {
Karsten Hopp 17a5b4
  	while (endp - pat > 0 && *endp == '*')
Karsten Hopp 17a5b4
  	    endp--;
Karsten Hopp 17a5b4
--- 10210,10216 ----
Karsten Hopp 17a5b4
      else
Karsten Hopp 17a5b4
  	reg_pat[i++] = '^';
Karsten Hopp 17a5b4
      endp = pat_end - 1;
Karsten Hopp 17a5b4
!     if (endp >= pat && *endp == '*')
Karsten Hopp 17a5b4
      {
Karsten Hopp 17a5b4
  	while (endp - pat > 0 && *endp == '*')
Karsten Hopp 17a5b4
  	    endp--;
Karsten Hopp 17a5b4
*** ../vim-7.4.819/src/version.c	2015-08-11 18:33:43.078928006 +0200
Karsten Hopp 17a5b4
--- src/version.c	2015-08-11 18:44:56.022874464 +0200
Karsten Hopp 17a5b4
***************
Karsten Hopp 17a5b4
*** 743,744 ****
Karsten Hopp 17a5b4
--- 743,746 ----
Karsten Hopp 17a5b4
  {   /* Add new patch number below this line */
Karsten Hopp 17a5b4
+ /**/
Karsten Hopp 17a5b4
+     820,
Karsten Hopp 17a5b4
  /**/
Karsten Hopp 17a5b4
Karsten Hopp 17a5b4
-- 
Karsten Hopp 17a5b4
WOMAN:   Well, 'ow did you become king then?
Karsten Hopp 17a5b4
ARTHUR:  The Lady of the Lake, [angels sing] her arm clad in the purest
Karsten Hopp 17a5b4
         shimmering samite, held aloft Excalibur from the bosom of the water
Karsten Hopp 17a5b4
         signifying by Divine Providence that I, Arthur, was to carry
Karsten Hopp 17a5b4
         Excalibur.  [singing stops] That is why I am your king!
Karsten Hopp 17a5b4
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp 17a5b4
Karsten Hopp 17a5b4
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 17a5b4
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 17a5b4
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 17a5b4
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///