|
Karsten Hopp |
b7a7a1 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
b7a7a1 |
Subject: patch 7.1.112
|
|
Karsten Hopp |
b7a7a1 |
Fcc: outbox
|
|
Karsten Hopp |
b7a7a1 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
b7a7a1 |
Mime-Version: 1.0
|
|
Karsten Hopp |
b7a7a1 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
b7a7a1 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
b7a7a1 |
------------
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
Patch 7.1.112
|
|
Karsten Hopp |
b7a7a1 |
Problem: Using input() with a wrong argument may crash Vim. (A.Politz)
|
|
Karsten Hopp |
b7a7a1 |
Solution: Init the input() return value to NULL.
|
|
Karsten Hopp |
b7a7a1 |
Files: src/eval.c
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
*** ../vim-7.1.111/src/eval.c Thu Sep 13 20:39:58 2007
|
|
Karsten Hopp |
b7a7a1 |
--- src/eval.c Sat Sep 15 19:04:51 2007
|
|
Karsten Hopp |
b7a7a1 |
***************
|
|
Karsten Hopp |
b7a7a1 |
*** 11565,11578 ****
|
|
Karsten Hopp |
b7a7a1 |
char_u *xp_arg = NULL;
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
#ifdef NO_CONSOLE_INPUT
|
|
Karsten Hopp |
b7a7a1 |
/* While starting up, there is no place to enter text. */
|
|
Karsten Hopp |
b7a7a1 |
if (no_console_input())
|
|
Karsten Hopp |
b7a7a1 |
- {
|
|
Karsten Hopp |
b7a7a1 |
- rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
b7a7a1 |
return;
|
|
Karsten Hopp |
b7a7a1 |
- }
|
|
Karsten Hopp |
b7a7a1 |
#endif
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
cmd_silent = FALSE; /* Want to see the prompt. */
|
|
Karsten Hopp |
b7a7a1 |
--- 11566,11577 ----
|
|
Karsten Hopp |
b7a7a1 |
char_u *xp_arg = NULL;
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
rettv->v_type = VAR_STRING;
|
|
Karsten Hopp |
b7a7a1 |
+ rettv->vval.v_string = NULL;
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
#ifdef NO_CONSOLE_INPUT
|
|
Karsten Hopp |
b7a7a1 |
/* While starting up, there is no place to enter text. */
|
|
Karsten Hopp |
b7a7a1 |
if (no_console_input())
|
|
Karsten Hopp |
b7a7a1 |
return;
|
|
Karsten Hopp |
b7a7a1 |
#endif
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
cmd_silent = FALSE; /* Want to see the prompt. */
|
|
Karsten Hopp |
b7a7a1 |
*** ../vim-7.1.111/src/version.c Sun Sep 16 13:26:56 2007
|
|
Karsten Hopp |
b7a7a1 |
--- src/version.c Sun Sep 16 14:19:04 2007
|
|
Karsten Hopp |
b7a7a1 |
***************
|
|
Karsten Hopp |
b7a7a1 |
*** 668,669 ****
|
|
Karsten Hopp |
b7a7a1 |
--- 668,671 ----
|
|
Karsten Hopp |
b7a7a1 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
b7a7a1 |
+ /**/
|
|
Karsten Hopp |
b7a7a1 |
+ 112,
|
|
Karsten Hopp |
b7a7a1 |
/**/
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
--
|
|
Karsten Hopp |
b7a7a1 |
The early bird gets the worm. If you want something else for
|
|
Karsten Hopp |
b7a7a1 |
breakfast, get up later.
|
|
Karsten Hopp |
b7a7a1 |
|
|
Karsten Hopp |
b7a7a1 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
b7a7a1 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
b7a7a1 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
b7a7a1 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|