]> git.pld-linux.org Git - packages/vim.git/blame - 7.0.024
- new
[packages/vim.git] / 7.0.024
CommitLineData
6f27073b
AG
1To: vim-dev@vim.org
2Subject: Patch 7.0.024
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.0.024
11Problem: It is possible to set arbitrary "v:" variables.
12Solution: Disallow setting "v:" variables that are not predefined.
13Files: 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--
45ARTHUR: No, hang on! Just answer the five questions ...
46GALAHAD: Three questions ...
47ARTHUR: 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.035056 seconds and 4 git commands to generate.