]>
Commit | Line | Data |
---|---|---|
c6060300 MT |
1 | To: vim_dev@googlegroups.com |
2 | Subject: Patch 7.3.115 | |
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.3.115 | |
11 | Problem: Vim can crash when tmpnam() returns NULL. | |
12 | Solution: Check for NULL. (Hong Xu) | |
13 | Files: 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 | -- | |
51 | hundred-and-one symptoms of being an internet addict: | |
52 | 218. 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 /// |