]> git.pld-linux.org Git - packages/vim.git/blob - 7.0.024
- updated to 0.7.3
[packages/vim.git] / 7.0.024
1 To: vim-dev@vim.org
2 Subject: Patch 7.0.024
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.0.024
11 Problem:    It is possible to set arbitrary "v:" variables.
12 Solution:   Disallow setting "v:" variables that are not predefined.
13 Files:      src/eval.c
14
15
16 *** ../vim-7.0.023/src/eval.c   Sat May 13 13:36:47 2006
17 --- src/eval.c  Thu Jun 22 17:27:51 2006
18 ***************
19 *** 17759,17764 ****
20 --- 17763,17775 ----
21       }
22       else                  /* add a new variable */
23       {
24 +       /* Can't add "v:" variable. */
25 +       if (ht == &vimvarht)
26 +       {
27 +           EMSG2(_(e_illvar), name);
28 +           return;
29 +       }
30
31         /* Make sure the variable name is valid. */
32         for (p = varname; *p != NUL; ++p)
33             if (!eval_isnamec1(*p) && (p == varname || !VIM_ISDIGIT(*p))
34 *** ../vim-7.0.023/src/version.c        Thu Jun 22 16:48:43 2006
35 --- src/version.c       Thu Jun 22 17:30:59 2006
36 ***************
37 *** 668,669 ****
38 --- 668,671 ----
39   {   /* Add new patch number below this line */
40 + /**/
41 +     24,
42   /**/
43
44 -- 
45 ARTHUR:  No, hang on!  Just answer the five questions ...
46 GALAHAD: Three questions ...
47 ARTHUR:  Three questions ...  And we shall watch ... and pray.
48                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
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    ///
This page took 0.049278 seconds and 3 git commands to generate.