4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Accessing uninitialized memory when giving a message.
12 Solution: Check going the length before checking for a NUL byte.
16 *** ../vim-7.1.052/src/message.c Thu Jul 5 10:10:29 2007
17 --- src/message.c Sat Aug 4 23:13:58 2007
22 did_wait_return = FALSE;
23 ! while (*s != NUL && (maxlen < 0 || (int)(s - str) < maxlen))
26 * We are at the end of the screen line when:
30 did_wait_return = FALSE;
31 ! while ((maxlen < 0 || (int)(s - str) < maxlen) && *s != NUL)
34 * We are at the end of the screen line when:
35 *** ../vim-7.1.052/src/version.c Sun Aug 5 18:49:07 2007
36 --- src/version.c Sun Aug 5 19:18:46 2007
40 { /* Add new patch number below this line */
46 From "know your smileys":
49 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
50 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
51 \\\ download, build and distribute -- http://www.A-A-P.org ///
52 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///