]>
Commit | Line | Data |
---|---|---|
eafbe892 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.291 | |
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.2.291 | |
11 | Problem: Reading uninitialised memory in arabic mode. | |
12 | Solution: Use utfc_ptr2char_len() rather than utfc_ptr2char(). (Dominique | |
13 | Pelle) | |
14 | Files: src/screen.c | |
15 | ||
16 | ||
17 | *** ../vim-7.2.290/src/screen.c 2009-11-03 17:36:09.000000000 +0100 | |
18 | --- src/screen.c 2009-11-11 17:04:53.000000000 +0100 | |
19 | *************** | |
20 | *** 6413,6419 **** | |
21 | } | |
22 | else | |
23 | { | |
24 | ! nc = utfc_ptr2char(ptr + mbyte_blen, pcc); | |
25 | nc1 = pcc[0]; | |
26 | } | |
27 | pc = prev_c; | |
28 | --- 6413,6420 ---- | |
29 | } | |
30 | else | |
31 | { | |
32 | ! nc = utfc_ptr2char_len(ptr + mbyte_blen, pcc, | |
33 | ! (int)((text + len) - ptr - mbyte_blen)); | |
34 | nc1 = pcc[0]; | |
35 | } | |
36 | pc = prev_c; | |
37 | *** ../vim-7.2.290/src/version.c 2009-11-11 16:56:13.000000000 +0100 | |
38 | --- src/version.c 2009-11-11 17:06:48.000000000 +0100 | |
39 | *************** | |
40 | *** 683,684 **** | |
41 | --- 683,686 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 291, | |
45 | /**/ | |
46 | ||
47 | -- | |
48 | The problem with political jokes is that they get elected. | |
49 | ||
50 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
51 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
52 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
53 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |