4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Accessing freed memory. (Dominique Pelle)
12 Solution: Don't call reg_getline() to check if a line is the first in the
17 *** ../vim-7.1.172/src/regexp.c Thu Nov 29 21:26:38 2007
18 --- src/regexp.c Sat Dec 8 15:54:05 2007
24 ! /* Passing -1 to the getline() function provided for the search
25 ! * should always return NULL if the current line is the first
26 ! * line of the file. */
27 if (reglnum != 0 || reginput != regline
28 ! || (REG_MULTI && reg_getline((linenr_T)-1) != NULL))
36 ! /* We're not at the beginning of the file when below the first
37 ! * line where we started, not at the start of the line or we
38 ! * didn't start at the first line of the buffer. */
39 if (reglnum != 0 || reginput != regline
40 ! || (REG_MULTI && reg_firstlnum > 1))
44 *** ../vim-7.1.172/src/version.c Sat Dec 8 22:20:24 2007
45 --- src/version.c Sun Dec 9 19:24:36 2007
49 { /* Add new patch number below this line */
55 hundred-and-one symptoms of being an internet addict:
56 213. Your kids start referring to you as "that guy in front of the monitor."
58 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
59 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
60 \\\ download, build and distribute -- http://www.A-A-P.org ///
61 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///