1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Illegal memory access in after_pathsep().
12 Solution: Check that the pointer is not at the start of the file name.
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
21 #if defined(FEAT_MBYTE) || defined(PROTO)
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
29 #if defined(FEAT_MBYTE) || defined(PROTO)
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
41 ! return vim_ispathsep(p[-1])
42 && (!has_mbyte || (*mb_head_off)(b, p - 1) == 0);
49 ! return p > b && vim_ispathsep(p[-1])
50 && (!has_mbyte || (*mb_head_off)(b, p - 1) == 0);
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
58 { /* Add new patch number below this line */
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.
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 ///