4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Illegal memory access when searching in path.
12 Solution: Avoid looking at a byte after end of a string. (Dominique Pelle)
16 *** ../vim-7.2.156/src/search.c Fri Jul 18 12:05:58 2008
17 --- src/search.c Wed Apr 22 12:26:19 2009
20 for (col = pos.col; check_prevcol(linep, col, '\\', &col);)
23 ! /* Only accept a match when 'M' is in 'cpo' or when ecaping is
24 ! * what we expect. */
25 if (cpo_bsl || (bslcnt & 1) == match_escaped)
29 for (col = pos.col; check_prevcol(linep, col, '\\', &col);)
32 ! /* Only accept a match when 'M' is in 'cpo' or when escaping
33 ! * is what we expect. */
34 if (cpo_bsl || (bslcnt & 1) == match_escaped)
39 msg_putchar('\n'); /* cursor below last one */
40 if (!got_int) /* don't display if 'q'
44 msg_home_replace_hl(new_fname);
45 MSG_PUTS(_(" (includes previously listed match)"));
47 msg_putchar('\n'); /* cursor below last one */
48 if (!got_int) /* don't display if 'q'
52 msg_home_replace_hl(new_fname);
53 MSG_PUTS(_(" (includes previously listed match)"));
56 || IObuff[i-2] == '!'))))
59 ! /* copy as much as posible of the new word */
60 if (p - aux >= IOSIZE - i)
61 p = aux + IOSIZE - i - 1;
62 STRNCPY(IObuff + i, aux, p - aux);
64 || IObuff[i-2] == '!'))))
67 ! /* copy as much as possible of the new word */
68 if (p - aux >= IOSIZE - i)
69 p = aux + IOSIZE - i - 1;
70 STRNCPY(IObuff + i, aux, p - aux);
74 msg_putchar('\n'); /* cursor below last one */
75 if (!got_int) /* don't display if 'q' typed
76 ! at "--more--" mesage */
77 msg_home_replace_hl(curr_fname);
78 prev_fname = curr_fname;
82 msg_putchar('\n'); /* cursor below last one */
83 if (!got_int) /* don't display if 'q' typed
84 ! at "--more--" message */
85 msg_home_replace_hl(curr_fname);
86 prev_fname = curr_fname;
91 if (action != ACTION_SHOW)
93 ! curwin->w_cursor.col = (colnr_T) (startp - line);
94 curwin->w_set_curswant = TRUE;
99 if (action != ACTION_SHOW)
101 ! curwin->w_cursor.col = (colnr_T)(startp - line);
102 curwin->w_set_curswant = TRUE;
107 && action == ACTION_EXPAND
108 && !(compl_cont_status & CONT_SOL)
110 ! && *(p = startp + 1))
115 && action == ACTION_EXPAND
116 && !(compl_cont_status & CONT_SOL)
119 ! && *(p = startp + 1) != NUL)
123 *** ../vim-7.2.156/src/version.c Wed Apr 22 16:22:44 2009
124 --- src/version.c Wed Apr 22 16:39:59 2009
128 { /* Add new patch number below this line */
135 ARTHUR: Bloody peasant!
136 DENNIS: Oh, what a give away. Did you hear that, did you hear that, eh?
137 That's what I'm on about -- did you see him repressing me, you saw it
139 The Quest for the Holy Grail (Monty Python)
141 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
142 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
143 \\\ download, build and distribute -- http://www.A-A-P.org ///
144 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///