|
Karsten Hopp |
5de7db |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
5de7db |
Subject: Patch 7.3.115
|
|
Karsten Hopp |
5de7db |
Fcc: outbox
|
|
Karsten Hopp |
5de7db |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5de7db |
Mime-Version: 1.0
|
|
Karsten Hopp |
5de7db |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
5de7db |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5de7db |
------------
|
|
Karsten Hopp |
5de7db |
|
|
Karsten Hopp |
5de7db |
Patch 7.3.115
|
|
Karsten Hopp |
5de7db |
Problem: Vim can crash when tmpnam() returns NULL.
|
|
Karsten Hopp |
5de7db |
Solution: Check for NULL. (Hong Xu)
|
|
Karsten Hopp |
5de7db |
Files: src/fileio.c
|
|
Karsten Hopp |
5de7db |
|
|
Karsten Hopp |
5de7db |
|
|
Karsten Hopp |
5de7db |
*** ../vim-7.3.114/src/fileio.c 2011-02-09 14:46:58.000000000 +0100
|
|
Karsten Hopp |
5de7db |
--- src/fileio.c 2011-02-09 16:14:35.000000000 +0100
|
|
Karsten Hopp |
5de7db |
***************
|
|
Karsten Hopp |
5de7db |
*** 7483,7490 ****
|
|
Karsten Hopp |
5de7db |
# else /* WIN3264 */
|
|
Karsten Hopp |
5de7db |
|
|
Karsten Hopp |
5de7db |
# ifdef USE_TMPNAM
|
|
Karsten Hopp |
5de7db |
/* tmpnam() will make its own name */
|
|
Karsten Hopp |
5de7db |
! if (*tmpnam((char *)itmp) == NUL)
|
|
Karsten Hopp |
5de7db |
return NULL;
|
|
Karsten Hopp |
5de7db |
# else
|
|
Karsten Hopp |
5de7db |
char_u *p;
|
|
Karsten Hopp |
5de7db |
--- 7483,7493 ----
|
|
Karsten Hopp |
5de7db |
# else /* WIN3264 */
|
|
Karsten Hopp |
5de7db |
|
|
Karsten Hopp |
5de7db |
# ifdef USE_TMPNAM
|
|
Karsten Hopp |
5de7db |
+ char_u *p;
|
|
Karsten Hopp |
5de7db |
+
|
|
Karsten Hopp |
5de7db |
/* tmpnam() will make its own name */
|
|
Karsten Hopp |
5de7db |
! p = tmpnam((char *)itmp);
|
|
Karsten Hopp |
5de7db |
! if (p == NULL || *p == NUL)
|
|
Karsten Hopp |
5de7db |
return NULL;
|
|
Karsten Hopp |
5de7db |
# else
|
|
Karsten Hopp |
5de7db |
char_u *p;
|
|
Karsten Hopp |
5de7db |
*** ../vim-7.3.114/src/version.c 2011-02-09 15:59:32.000000000 +0100
|
|
Karsten Hopp |
5de7db |
--- src/version.c 2011-02-09 16:44:11.000000000 +0100
|
|
Karsten Hopp |
5de7db |
***************
|
|
Karsten Hopp |
5de7db |
*** 716,717 ****
|
|
Karsten Hopp |
5de7db |
--- 716,719 ----
|
|
Karsten Hopp |
5de7db |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5de7db |
+ /**/
|
|
Karsten Hopp |
5de7db |
+ 115,
|
|
Karsten Hopp |
5de7db |
/**/
|
|
Karsten Hopp |
5de7db |
|
|
Karsten Hopp |
5de7db |
--
|
|
Karsten Hopp |
5de7db |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
5de7db |
218. Your spouse hands you a gift wrapped magnet with your PC's name
|
|
Karsten Hopp |
5de7db |
on it and you accuse him or her of genocide.
|
|
Karsten Hopp |
5de7db |
|
|
Karsten Hopp |
5de7db |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5de7db |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5de7db |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
5de7db |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|