]> git.pld-linux.org Git - packages/vim.git/blob - 5.7.010
official patches for vim.
[packages/vim.git] / 5.7.010
1 To: vim-dev@vim.org
2 Subject: Patch 5.7.010
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 ------------
6
7 Patch 5.7.010
8 Problem:    When using CTRL-A on a very long number Vim can crash.  (Michael
9             Naumann)
10 Solution:   Truncate the length of the new number to avoid a buffer overflow.
11 Files:      src/ops.c
12
13
14 *** ../vim-5.7.9/src/ops.c      Fri Jun  2 12:28:27 2000
15 --- src/ops.c   Fri Oct  6 17:55:14 2000
16 ***************
17 *** 3940,3945 ****
18 --- 3940,3949 ----
19         --length;
20       }
21   
22 +     /* truncate to max length of a number */
23 +     if (length >= NUMBUFLEN - 1)
24 +       length = NUMBUFLEN - 2;
25
26       /*
27        * Put the number characters in buf2[].
28        */
29 *** ../vim-5.7.9/src/version.c  Mon Aug  7 09:59:44 2000
30 --- src/version.c       Fri Oct  6 18:06:45 2000
31 ***************
32 *** 439,440 ****
33 --- 439,442 ----
34   {   /* Add new patch number below this line */
35 + /**/
36 +     10,
37   /**/
38
39 -- 
40 hundred-and-one symptoms of being an internet addict:
41 196. Your computer costs more than your car.
42
43 ///  Bram Moolenaar     Bram@moolenaar.net     http://www.moolenaar.net  \\\
44 \\\  Vim: http://www.vim.org      ICCF Holland: http://iccf-holland.org  ///
This page took 0.033813 seconds and 3 git commands to generate.