]> git.pld-linux.org Git - packages/vim.git/blob - 7.3.675
- add patches 7.3.619-743
[packages/vim.git] / 7.3.675
1 To: vim_dev@googlegroups.com
2 Subject: Patch 7.3.675
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.3.675
11 Problem:    Using uninitialized memory with very long file name.
12 Solution:   Put NUL after text when it is truncated. (ZyX)
13 Files:      src/buffer.c
14
15
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
18 ***************
19 *** 3058,3064 ****
20   
21       *p++ = '"';
22       if (buf_spname(curbuf) != NULL)
23 !       STRCPY(p, buf_spname(curbuf));
24       else
25       {
26         if (!fullname && curbuf->b_fname != NULL)
27 --- 3058,3064 ----
28   
29       *p++ = '"';
30       if (buf_spname(curbuf) != NULL)
31 !       vim_strncpy(p, buf_spname(curbuf), IOSIZE - (p - buffer) - 1);
32       else
33       {
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
37 ***************
38 *** 721,722 ****
39 --- 721,724 ----
40   {   /* Add new patch number below this line */
41 + /**/
42 +     675,
43   /**/
44
45 -- 
46 It is illegal to rob a bank and then shoot at the bank teller with a water
47 pistol.
48                 [real standing law in Louisana, United States of America]
49
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    ///
This page took 0.046621 seconds and 3 git commands to generate.