]> git.pld-linux.org Git - packages/vim.git/blob - 6.3.090
- new
[packages/vim.git] / 6.3.090
1 To: vim-dev@vim.org
2 Subject: Patch 6.3.090
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 6.3.090
11 Problem:    A very big value for 'columns' or 'lines' may cause a crash.
12 Solution:   Limit the values to 10000 and 1000.
13 Files:      src/option.c
14
15
16 *** ../vim-6.3.089/src/option.c Thu Dec 16 12:05:19 2004
17 --- src/option.c        Fri Sep 30 15:02:26 2005
18 ***************
19 *** 6821,6826 ****
20 --- 6821,6831 ----
21         }
22         Columns = MIN_COLUMNS;
23       }
24 +     /* Limit the values to avoid an overflow in Rows * Columns. */
25 +     if (Columns > 10000)
26 +       Columns = 10000;
27 +     if (Rows > 1000)
28 +       Rows = 1000;
29   
30   #ifdef DJGPP
31       /* avoid a crash by checking for a too large value of 'columns' */
32 *** ../vim-6.3.089/src/version.c        Wed Sep 28 14:58:09 2005
33 --- src/version.c       Fri Sep 30 15:03:19 2005
34 ***************
35 *** 643,644 ****
36 --- 643,646 ----
37   {   /* Add new patch number below this line */
38 + /**/
39 +     90,
40   /**/
41
42 -- 
43 It is illegal to rob a bank and then shoot at the bank teller with a water
44 pistol.
45                 [real standing law in Louisana, United States of America]
46
47  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
48 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
49 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
50  \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
This page took 0.031702 seconds and 3 git commands to generate.