4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Reading from uninitialized memory when using a dialog. (Dominique
13 Solution: In msg_show_console_dialog() append a NUL after every appended
18 *** ../vim-7.1.019/src/message.c Thu May 10 18:49:39 2007
19 --- src/message.c Sun Jul 1 12:06:52 2007
22 /* advance to next hotkey and set default hotkey */
25 ! hotkp += (*mb_ptr2len)(hotkp);
29 ! (void)copy_char(r + 1, hotkp, TRUE);
34 /* advance to next hotkey and set default hotkey */
37 ! hotkp += STRLEN(hotkp);
41 ! hotkp[copy_char(r + 1, hotkp, TRUE)] = NUL;
47 *msgp++ = (dfltbutton == 1) ? ']' : ')';
50 ! (void)copy_char(r, hotkp, TRUE);
55 *msgp++ = (dfltbutton == 1) ? ']' : ')';
58 ! hotkp[copy_char(r, hotkp, TRUE)] = NUL;
75 msgp = confirm_msg + 1 + STRLEN(message);
78 ! /* define first default hotkey */
79 ! (void)copy_char(buttons, hotkp, TRUE);
81 /* Remember where the choices start, displaying starts here when
82 * "hotkp" typed at the more prompt. */
84 msgp = confirm_msg + 1 + STRLEN(message);
87 ! /* Define first default hotkey. Keep the hotkey string NUL
88 ! * terminated to avoid reading past the end. */
89 ! hotkp[copy_char(buttons, hotkp, TRUE)] = NUL;
91 /* Remember where the choices start, displaying starts here when
92 * "hotkp" typed at the more prompt. */
93 *** ../vim-7.1.019/src/version.c Thu Jul 5 09:53:20 2007
94 --- src/version.c Thu Jul 5 10:09:34 2007
98 { /* Add new patch number below this line */
104 BLACK KNIGHT: Come on you pansy!
106 [ARTHUR chops the BLACK KNIGHT's right arm off]
107 ARTHUR: Victory is mine! [kneeling]
108 We thank thee Lord, that in thy merc-
109 [Black Knight kicks Arthur in the head while he is praying]
110 The Quest for the Holy Grail (Monty Python)
112 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
113 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
114 \\\ download, build and distribute -- http://www.A-A-P.org ///
115 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///