]> git.pld-linux.org Git - packages/vim.git/blame - 7.1.330
- recognize update_mime_database
[packages/vim.git] / 7.1.330
CommitLineData
60178ca2
ER
1To: vim-dev@vim.org
2Subject: Patch 7.1.330
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.1.330
11Problem: Reading uninitialized memory when using Del in replace mode.
12Solution: Use utfc_ptr2len_len() instead of mb_ptr2len(). (Dominique Pelle)
13Files: src/misc1.c
14
15
16*** ../vim-7.1.329/src/misc1.c Mon Feb 25 21:54:23 2008
17--- src/misc1.c Sat Jun 21 16:02:34 2008
18***************
19*** 1880,1894 ****
20 # ifdef FEAT_MBYTE
21 int n;
22
23! for (i = 0; i < len; i += n)
24! {
25! n = (*mb_ptr2len)(p + i);
26! ins_char_bytes(p + i, n);
27! }
28! # else
29! for (i = 0; i < len; ++i)
30! ins_char(p[i]);
31 # endif
32 }
33 #endif
34
35--- 1880,1899 ----
36 # ifdef FEAT_MBYTE
37 int n;
38
39! if (has_mbyte)
40! for (i = 0; i < len; i += n)
41! {
42! if (enc_utf8)
43! /* avoid reading past p[len] */
44! n = utfc_ptr2len_len(p + i, len - i);
45! else
46! n = (*mb_ptr2len)(p + i);
47! ins_char_bytes(p + i, n);
48! }
49! else
50 # endif
51+ for (i = 0; i < len; ++i)
52+ ins_char(p[i]);
53 }
54 #endif
55
56*** ../vim-7.1.329/src/version.c Sat Jun 21 14:13:51 2008
57--- src/version.c Sat Jun 21 16:28:28 2008
58***************
59*** 668,669 ****
60--- 673,676 ----
61 { /* Add new patch number below this line */
62+ /**/
63+ 330,
64 /**/
65
66--
67hundred-and-one symptoms of being an internet addict:
6865. The last time you looked at the clock it was 11:30pm, and in what
69 seems like only a few seconds later, your sister runs past you to
70 catch her 7am school bus.
71
72 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
73/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
74\\\ download, build and distribute -- http://www.A-A-P.org ///
75 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.032922 seconds and 4 git commands to generate.