]>
Commit | Line | Data |
---|---|---|
ad28a8ff AG |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.011 | |
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.1.011 | |
11 | Problem: Possible buffer overflow when $VIMRUNTIME is very long. (Victor | |
12 | Stinner) | |
13 | Solution: Use vim_snprintf(). | |
14 | Files: src/main.c | |
15 | ||
16 | ||
17 | *** ../vim-7.1.010/src/main.c Thu May 10 21:12:25 2007 | |
18 | --- src/main.c Sat Jun 9 22:37:46 2007 | |
19 | *************** | |
20 | *** 1360,1367 **** | |
21 | p = vim_getenv((char_u *)"VIMRUNTIME", &mustfree); | |
22 | if (p != NULL && *p != NUL) | |
23 | { | |
24 | ! STRCPY(NameBuff, p); | |
25 | ! STRCAT(NameBuff, "/lang"); | |
26 | bindtextdomain(VIMPACKAGE, (char *)NameBuff); | |
27 | } | |
28 | if (mustfree) | |
29 | --- 1360,1366 ---- | |
30 | p = vim_getenv((char_u *)"VIMRUNTIME", &mustfree); | |
31 | if (p != NULL && *p != NUL) | |
32 | { | |
33 | ! vim_snprintf((char *)NameBuff, MAXPATHL, "%s/lang", p); | |
34 | bindtextdomain(VIMPACKAGE, (char *)NameBuff); | |
35 | } | |
36 | if (mustfree) | |
37 | *** ../vim-7.1.010/src/version.c Tue Jun 19 18:07:52 2007 | |
38 | --- src/version.c Tue Jun 19 20:29:44 2007 | |
39 | *************** | |
40 | *** 668,669 **** | |
41 | --- 668,671 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 11, | |
45 | /**/ | |
46 | ||
47 | -- | |
48 | GALAHAD hurries to the door and pushes through it. As he leaves the room | |
49 | we CUT TO the reverse to show that he is now in a room full of bathing | |
50 | and romping GIRLIES, all innocent, wide-eyed and beautiful. They smile | |
51 | enchantingly at him as he tries to keep walking without being diverted by | |
52 | the lovely sights assaulting his eyeballs. | |
53 | "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD | |
54 | ||
55 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
56 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
57 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
58 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |