]>
Commit | Line | Data |
---|---|---|
c0949972 ER |
1 | To: vim-dev@vim.org |
2 | Subject: patch 7.1.112 | |
3 | Fcc: outbox | |
4 | From: Bram Moolenaar <Bram@moolenaar.net> | |
5 | Mime-Version: 1.0 | |
6 | Content-Type: text/plain; charset=ISO-8859-1 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ------------ | |
9 | ||
10 | Patch 7.1.112 | |
11 | Problem: Using input() with a wrong argument may crash Vim. (A.Politz) | |
12 | Solution: Init the input() return value to NULL. | |
13 | Files: src/eval.c | |
14 | ||
15 | ||
16 | *** ../vim-7.1.111/src/eval.c Thu Sep 13 20:39:58 2007 | |
17 | --- src/eval.c Sat Sep 15 19:04:51 2007 | |
18 | *************** | |
19 | *** 11565,11578 **** | |
20 | char_u *xp_arg = NULL; | |
21 | ||
22 | rettv->v_type = VAR_STRING; | |
23 | ||
24 | #ifdef NO_CONSOLE_INPUT | |
25 | /* While starting up, there is no place to enter text. */ | |
26 | if (no_console_input()) | |
27 | - { | |
28 | - rettv->vval.v_string = NULL; | |
29 | return; | |
30 | - } | |
31 | #endif | |
32 | ||
33 | cmd_silent = FALSE; /* Want to see the prompt. */ | |
34 | --- 11566,11577 ---- | |
35 | char_u *xp_arg = NULL; | |
36 | ||
37 | rettv->v_type = VAR_STRING; | |
38 | + rettv->vval.v_string = NULL; | |
39 | ||
40 | #ifdef NO_CONSOLE_INPUT | |
41 | /* While starting up, there is no place to enter text. */ | |
42 | if (no_console_input()) | |
43 | return; | |
44 | #endif | |
45 | ||
46 | cmd_silent = FALSE; /* Want to see the prompt. */ | |
47 | *** ../vim-7.1.111/src/version.c Sun Sep 16 13:26:56 2007 | |
48 | --- src/version.c Sun Sep 16 14:19:04 2007 | |
49 | *************** | |
50 | *** 668,669 **** | |
51 | --- 668,671 ---- | |
52 | { /* Add new patch number below this line */ | |
53 | + /**/ | |
54 | + 112, | |
55 | /**/ | |
56 | ||
57 | -- | |
58 | The early bird gets the worm. If you want something else for | |
59 | breakfast, get up later. | |
60 | ||
61 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
62 | /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
63 | \\\ download, build and distribute -- http://www.A-A-P.org /// | |
64 | \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |