|
Karsten Hopp |
417fe2 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
417fe2 |
Subject: Patch 7.1.173
|
|
Karsten Hopp |
417fe2 |
Fcc: outbox
|
|
Karsten Hopp |
417fe2 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
417fe2 |
Mime-Version: 1.0
|
|
Karsten Hopp |
417fe2 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
417fe2 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
417fe2 |
------------
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
Patch 7.1.173
|
|
Karsten Hopp |
417fe2 |
Problem: Accessing freed memory. (Dominique Pelle)
|
|
Karsten Hopp |
417fe2 |
Solution: Don't call reg_getline() to check if a line is the first in the
|
|
Karsten Hopp |
417fe2 |
file.
|
|
Karsten Hopp |
417fe2 |
Files: src/regexp.c
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
*** ../vim-7.1.172/src/regexp.c Thu Nov 29 21:26:38 2007
|
|
Karsten Hopp |
417fe2 |
--- src/regexp.c Sat Dec 8 15:54:05 2007
|
|
Karsten Hopp |
417fe2 |
***************
|
|
Karsten Hopp |
417fe2 |
*** 3810,3820 ****
|
|
Karsten Hopp |
417fe2 |
break;
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
case RE_BOF:
|
|
Karsten Hopp |
417fe2 |
! /* Passing -1 to the getline() function provided for the search
|
|
Karsten Hopp |
417fe2 |
! * should always return NULL if the current line is the first
|
|
Karsten Hopp |
417fe2 |
! * line of the file. */
|
|
Karsten Hopp |
417fe2 |
if (reglnum != 0 || reginput != regline
|
|
Karsten Hopp |
417fe2 |
! || (REG_MULTI && reg_getline((linenr_T)-1) != NULL))
|
|
Karsten Hopp |
417fe2 |
status = RA_NOMATCH;
|
|
Karsten Hopp |
417fe2 |
break;
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
--- 3810,3820 ----
|
|
Karsten Hopp |
417fe2 |
break;
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
case RE_BOF:
|
|
Karsten Hopp |
417fe2 |
! /* We're not at the beginning of the file when below the first
|
|
Karsten Hopp |
417fe2 |
! * line where we started, not at the start of the line or we
|
|
Karsten Hopp |
417fe2 |
! * didn't start at the first line of the buffer. */
|
|
Karsten Hopp |
417fe2 |
if (reglnum != 0 || reginput != regline
|
|
Karsten Hopp |
417fe2 |
! || (REG_MULTI && reg_firstlnum > 1))
|
|
Karsten Hopp |
417fe2 |
status = RA_NOMATCH;
|
|
Karsten Hopp |
417fe2 |
break;
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
*** ../vim-7.1.172/src/version.c Sat Dec 8 22:20:24 2007
|
|
Karsten Hopp |
417fe2 |
--- src/version.c Sun Dec 9 19:24:36 2007
|
|
Karsten Hopp |
417fe2 |
***************
|
|
Karsten Hopp |
417fe2 |
*** 668,669 ****
|
|
Karsten Hopp |
417fe2 |
--- 668,671 ----
|
|
Karsten Hopp |
417fe2 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
417fe2 |
+ /**/
|
|
Karsten Hopp |
417fe2 |
+ 173,
|
|
Karsten Hopp |
417fe2 |
/**/
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
--
|
|
Karsten Hopp |
417fe2 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
417fe2 |
213. Your kids start referring to you as "that guy in front of the monitor."
|
|
Karsten Hopp |
417fe2 |
|
|
Karsten Hopp |
417fe2 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
417fe2 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
417fe2 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
417fe2 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|