]> git.pld-linux.org Git - packages/vim.git/blame - 7.3.115
- new
[packages/vim.git] / 7.3.115
CommitLineData
57d93a78
ER
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.115
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.115
11Problem: Vim can crash when tmpnam() returns NULL.
12Solution: Check for NULL. (Hong Xu)
13Files: src/fileio.c
14
15
16*** ../vim-7.3.114/src/fileio.c 2011-02-09 14:46:58.000000000 +0100
17--- src/fileio.c 2011-02-09 16:14:35.000000000 +0100
18***************
19*** 7483,7490 ****
20 # else /* WIN3264 */
21
22 # ifdef USE_TMPNAM
23 /* tmpnam() will make its own name */
24! if (*tmpnam((char *)itmp) == NUL)
25 return NULL;
26 # else
27 char_u *p;
28--- 7483,7493 ----
29 # else /* WIN3264 */
30
31 # ifdef USE_TMPNAM
32+ char_u *p;
33+
34 /* tmpnam() will make its own name */
35! p = tmpnam((char *)itmp);
36! if (p == NULL || *p == NUL)
37 return NULL;
38 # else
39 char_u *p;
40*** ../vim-7.3.114/src/version.c 2011-02-09 15:59:32.000000000 +0100
41--- src/version.c 2011-02-09 16:44:11.000000000 +0100
42***************
43*** 716,717 ****
44--- 716,719 ----
45 { /* Add new patch number below this line */
46+ /**/
47+ 115,
48 /**/
49
50--
51hundred-and-one symptoms of being an internet addict:
52218. Your spouse hands you a gift wrapped magnet with your PC's name
53 on it and you accuse him or her of genocide.
54
55 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
56/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
57\\\ an exciting new programming language -- http://www.Zimbu.org ///
58 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.034226 seconds and 4 git commands to generate.