]>
Commit | Line | Data |
---|---|---|
215fbeef AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.1.319 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.319 | |
11 | Problem: When a register has an illegal utf-8 sequence, pasting it on the | |
12 | command line causes an illegal memory access. | |
13 | Solution: Use mb_cptr2char_adv(). (Dominique Pelle) | |
14 | Files: src/ex_getln.c | |
15 | ||
16 | ||
17 | *** ../vim-7.1.318/src/ex_getln.c Thu May 29 15:33:13 2008 | |
18 | --- src/ex_getln.c Mon Jun 9 20:10:51 2008 | |
19 | *************** | |
20 | *** 3032,3041 **** | |
21 | ++s; | |
22 | #ifdef FEAT_MBYTE | |
23 | if (has_mbyte) | |
24 | ! { | |
25 | ! c = mb_ptr2char(s); | |
26 | ! s += mb_char2len(c); | |
27 | ! } | |
28 | else | |
29 | #endif | |
30 | c = *s++; | |
31 | --- 3033,3039 ---- | |
32 | ++s; | |
33 | #ifdef FEAT_MBYTE | |
34 | if (has_mbyte) | |
35 | ! c = mb_cptr2char_adv(&s); | |
36 | else | |
37 | #endif | |
38 | c = *s++; | |
39 | *** ../vim-7.1.318/src/version.c Fri Jun 20 11:58:27 2008 | |
40 | --- src/version.c Fri Jun 20 12:53:16 2008 | |
41 | *************** | |
42 | *** 668,669 **** | |
43 | --- 673,676 ---- | |
44 | { /* Add new patch number below this line */ | |
45 | + /**/ | |
46 | + 319, | |
47 | /**/ | |
48 | ||
49 | -- | |
50 | hundred-and-one symptoms of being an internet addict: | |
51 | 46. Your wife makes a new rule: "The computer cannot come to bed." | |
52 | ||
53 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
54 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
55 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
56 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |