]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.242
- new
[packages/vim.git] / 7.3.242
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.242
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.242
11 Problem:    Illegal memory access in after_pathsep().
12 Solution:   Check that the pointer is not at the start of the file name.
13             (Dominique Pelle)
14 Files:      src/misc2.c
15
16
17 *** ../vim-7.3.241/src/misc2.c  2011-07-07 16:20:45.000000000 +0200
18 --- src/misc2.c 2011-07-07 17:05:41.000000000 +0200
19 ***************
20 *** 3247,3253 ****
21   #if defined(FEAT_MBYTE) || defined(PROTO)
22   /*
23    * Return TRUE if "p" points to just after a path separator.
24 !  * Take care of multi-byte characters.
25    * "b" must point to the start of the file name
26    */
27       int
28 --- 3247,3253 ----
29   #if defined(FEAT_MBYTE) || defined(PROTO)
30   /*
31    * Return TRUE if "p" points to just after a path separator.
32 !  * Takes care of multi-byte characters.
33    * "b" must point to the start of the file name
34    */
35       int
36 ***************
37 *** 3255,3261 ****
38       char_u    *b;
39       char_u    *p;
40   {
41 !     return vim_ispathsep(p[-1])
42                              && (!has_mbyte || (*mb_head_off)(b, p - 1) == 0);
43   }
44   #endif
45 --- 3255,3261 ----
46       char_u    *b;
47       char_u    *p;
48   {
49 !     return p > b && vim_ispathsep(p[-1])
50                              && (!has_mbyte || (*mb_head_off)(b, p - 1) == 0);
51   }
52   #endif
53 *** ../vim-7.3.241/src/version.c        2011-07-07 16:44:33.000000000 +0200
54 --- src/version.c       2011-07-07 17:05:49.000000000 +0200
55 ***************
56 *** 711,712 ****
57 --- 711,714 ----
58   {   /* Add new patch number below this line */
59 + /**/
60 +     242,
61   /**/
62
63 -- 
64 hundred-and-one symptoms of being an internet addict:
65 260. Co-workers have to E-mail you about the fire alarm to get
66      you out of the building.
67
68  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
69 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
70 \\\  an exciting new programming language -- http://www.Zimbu.org        ///
71  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.050018 seconds and 3 git commands to generate.