]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.382
- new
[packages/vim.git] / 7.2.382
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.382
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.2.382
11 Problem:    Accessing freed memory when closing the cmdline window when
12             'bufhide' is set to "wipe".
13 Solution:   Check if the buffer still exists before invoking close_buffer()
14             (Dominique Pelle)
15 Files:      src/ex_getln.c
16
17
18 *** ../vim-7.2.381/src/ex_getln.c       2010-03-02 15:55:51.000000000 +0100
19 --- src/ex_getln.c      2010-03-02 16:29:38.000000000 +0100
20 ***************
21 *** 6252,6258 ****
22         bp = curbuf;
23         win_goto(old_curwin);
24         win_close(wp, TRUE);
25 !       close_buffer(NULL, bp, DOBUF_WIPE);
26   
27         /* Restore window sizes. */
28         win_size_restore(&winsizes);
29 --- 6252,6262 ----
30         bp = curbuf;
31         win_goto(old_curwin);
32         win_close(wp, TRUE);
33
34 !       /* win_close() may have already wiped the buffer when 'bh' is
35 !        * set to 'wipe' */
36 !       if (buf_valid(bp))
37 !           close_buffer(NULL, bp, DOBUF_WIPE);
38   
39         /* Restore window sizes. */
40         win_size_restore(&winsizes);
41 *** ../vim-7.2.381/src/version.c        2010-03-02 15:55:51.000000000 +0100
42 --- src/version.c       2010-03-02 17:22:11.000000000 +0100
43 ***************
44 *** 683,684 ****
45 --- 683,686 ----
46   {   /* Add new patch number below this line */
47 + /**/
48 +     382,
49   /**/
50
51 -- 
52 You had connectors?  Eeee, when I were a lad we 'ad to carry the
53 bits between the computer and the terminal with a spoon...
54
55  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
56 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
57 \\\        download, build and distribute -- http://www.A-A-P.org        ///
58  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.026311 seconds and 3 git commands to generate.