4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Possible buffer overflow when $VIMRUNTIME is very long. (Victor
13 Solution: Use vim_snprintf().
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
21 p = vim_getenv((char_u *)"VIMRUNTIME", &mustfree);
22 if (p != NULL && *p != NUL)
24 ! STRCPY(NameBuff, p);
25 ! STRCAT(NameBuff, "/lang");
26 bindtextdomain(VIMPACKAGE, (char *)NameBuff);
30 p = vim_getenv((char_u *)"VIMRUNTIME", &mustfree);
31 if (p != NULL && *p != NUL)
33 ! vim_snprintf((char *)NameBuff, MAXPATHL, "%s/lang", p);
34 bindtextdomain(VIMPACKAGE, (char *)NameBuff);
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
42 { /* Add new patch number below this line */
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
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 ///