]> git.pld-linux.org Git - packages/vim.git/blame - 5.7.010
one glob more (fix missing menu.vim problem)
[packages/vim.git] / 5.7.010
CommitLineData
6607070e 1To: vim-dev@vim.org
2Subject: Patch 5.7.010
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5------------
6
7Patch 5.7.010
8Problem: When using CTRL-A on a very long number Vim can crash. (Michael
9 Naumann)
10Solution: Truncate the length of the new number to avoid a buffer overflow.
11Files: 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--
40hundred-and-one symptoms of being an internet addict:
41196. 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.03021 seconds and 4 git commands to generate.