]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.121
- new
[packages/vim.git] / 7.3.121
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.121
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.121
11 Problem:    Complicated 'statusline' causes a crash. (Christian Brabandt)
12 Solution:   Check that the number of items is not too big.
13 Files:      src/buffer.c
14
15
16 *** ../vim-7.3.120/src/buffer.c 2011-02-01 21:54:56.000000000 +0100
17 --- src/buffer.c        2011-02-15 14:00:51.000000000 +0100
18 ***************
19 *** 3460,3465 ****
20 --- 3461,3478 ----
21       prevchar_isitem = FALSE;
22       for (s = usefmt; *s; )
23       {
24 +       if (curitem == STL_MAX_ITEM)
25 +       {
26 +           /* There are too many items.  Add the error code to the statusline
27 +            * to give the user a hint about what went wrong. */
28 +           if (p + 6 < out + outlen)
29 +           {
30 +               mch_memmove(p, " E541", (size_t)5);
31 +               p += 5;
32 +           }
33 +           break;
34 +       }
35
36         if (*s != NUL && *s != '%')
37             prevchar_isflag = prevchar_isitem = FALSE;
38   
39 *** ../vim-7.3.120/src/version.c        2011-02-15 11:56:56.000000000 +0100
40 --- src/version.c       2011-02-15 14:23:39.000000000 +0100
41 ***************
42 *** 716,717 ****
43 --- 716,719 ----
44   {   /* Add new patch number below this line */
45 + /**/
46 +     121,
47   /**/
48
49 -- 
50 hundred-and-one symptoms of being an internet addict:
51 265. Your reason for not staying in touch with family is that
52      they do not have e-mail addresses.
53
54  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
55 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
56 \\\  an exciting new programming language -- http://www.Zimbu.org        ///
57  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.03094 seconds and 3 git commands to generate.