]>
Commit | Line | Data |
---|---|---|
4ff12b6a ER |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 7.2.250 (extra) | |
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.2.250 (extra) | |
11 | Problem: Possible buffer overflow. | |
12 | Solution: Compute the remaining space. (Dominique Pelle) | |
13 | Files: src/GvimExt/gvimext.cpp | |
14 | ||
15 | ||
16 | *** ../vim-7.2.249/src/GvimExt/gvimext.cpp 2008-07-24 20:51:11.000000000 +0200 | |
17 | --- src/GvimExt/gvimext.cpp 2009-09-11 13:26:27.000000000 +0200 | |
18 | *************** | |
19 | *** 635,641 **** | |
20 | } | |
21 | // Now concatenate | |
22 | strncpy(temp, _("Edit with existing Vim - "), BUFSIZE - 1); | |
23 | ! strncat(temp, title, BUFSIZE - 1); | |
24 | InsertMenu(hMenu, | |
25 | indexMenu++, | |
26 | MF_STRING|MF_BYPOSITION, | |
27 | --- 635,643 ---- | |
28 | } | |
29 | // Now concatenate | |
30 | strncpy(temp, _("Edit with existing Vim - "), BUFSIZE - 1); | |
31 | ! temp[BUFSIZE - 1] = '\0'; | |
32 | ! strncat(temp, title, BUFSIZE - 1 - strlen(temp)); | |
33 | ! temp[BUFSIZE - 1] = '\0'; | |
34 | InsertMenu(hMenu, | |
35 | indexMenu++, | |
36 | MF_STRING|MF_BYPOSITION, | |
37 | *** ../vim-7.2.249/src/version.c 2009-09-11 12:59:57.000000000 +0200 | |
38 | --- src/version.c 2009-09-11 13:23:45.000000000 +0200 | |
39 | *************** | |
40 | *** 678,679 **** | |
41 | --- 678,681 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 250, | |
45 | /**/ | |
46 | ||
47 | ||
48 | -- | |
49 | hundred-and-one symptoms of being an internet addict: | |
50 | 223. You set up a web-cam as your home's security system. | |
51 | ||
52 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
53 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
54 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
55 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |