1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Using uninitialized memory with very long file name.
12 Solution: Put NUL after text when it is truncated. (ZyX)
16 *** ../vim-7.3.674/src/buffer.c 2012-09-05 13:30:22.000000000 +0200
17 --- src/buffer.c 2012-10-03 16:25:12.000000000 +0200
22 if (buf_spname(curbuf) != NULL)
23 ! STRCPY(p, buf_spname(curbuf));
26 if (!fullname && curbuf->b_fname != NULL)
30 if (buf_spname(curbuf) != NULL)
31 ! vim_strncpy(p, buf_spname(curbuf), IOSIZE - (p - buffer) - 1);
34 if (!fullname && curbuf->b_fname != NULL)
35 *** ../vim-7.3.674/src/version.c 2012-10-03 14:48:03.000000000 +0200
36 --- src/version.c 2012-10-03 16:29:28.000000000 +0200
40 { /* Add new patch number below this line */
46 It is illegal to rob a bank and then shoot at the bank teller with a water
48 [real standing law in Louisana, United States of America]
50 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
51 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
52 \\\ an exciting new programming language -- http://www.Zimbu.org ///
53 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///