|
|
22c937 |
To: vim_dev@googlegroups.com
|
|
|
22c937 |
Subject: Patch 7.4.629
|
|
|
22c937 |
Fcc: outbox
|
|
|
22c937 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
22c937 |
Mime-Version: 1.0
|
|
|
22c937 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c937 |
Content-Transfer-Encoding: 8bit
|
|
|
22c937 |
------------
|
|
|
22c937 |
|
|
|
22c937 |
Patch 7.4.629
|
|
|
22c937 |
Problem: Coverity warning for Out-of-bounds read.
|
|
|
22c937 |
Solution: Increase MAXWLEN to 254. (Eliseo MartÃnez)
|
|
|
22c937 |
Files: src/spell.c
|
|
|
22c937 |
|
|
|
22c937 |
|
|
|
22c937 |
*** ../vim-7.4.628/src/spell.c 2014-11-19 16:38:01.512679964 +0100
|
|
|
22c937 |
--- src/spell.c 2015-02-10 20:00:22.188514910 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 311,319 ****
|
|
|
22c937 |
# include <time.h> /* for time_t */
|
|
|
22c937 |
#endif
|
|
|
22c937 |
|
|
|
22c937 |
! #define MAXWLEN 250 /* Assume max. word len is this many bytes.
|
|
|
22c937 |
Some places assume a word length fits in a
|
|
|
22c937 |
! byte, thus it can't be above 255. */
|
|
|
22c937 |
|
|
|
22c937 |
/* Type used for indexes in the word tree need to be at least 4 bytes. If int
|
|
|
22c937 |
* is 8 bytes we could use something smaller, but what? */
|
|
|
22c937 |
--- 311,320 ----
|
|
|
22c937 |
# include <time.h> /* for time_t */
|
|
|
22c937 |
#endif
|
|
|
22c937 |
|
|
|
22c937 |
! #define MAXWLEN 254 /* Assume max. word len is this many bytes.
|
|
|
22c937 |
Some places assume a word length fits in a
|
|
|
22c937 |
! byte, thus it can't be above 255.
|
|
|
22c937 |
! Must be >= PFD_NOTSPECIAL. */
|
|
|
22c937 |
|
|
|
22c937 |
/* Type used for indexes in the word tree need to be at least 4 bytes. If int
|
|
|
22c937 |
* is 8 bytes we could use something smaller, but what? */
|
|
|
22c937 |
*** ../vim-7.4.628/src/version.c 2015-02-10 19:26:58.918748560 +0100
|
|
|
22c937 |
--- src/version.c 2015-02-10 20:01:27.475662030 +0100
|
|
|
22c937 |
***************
|
|
|
22c937 |
*** 743,744 ****
|
|
|
22c937 |
--- 743,746 ----
|
|
|
22c937 |
{ /* Add new patch number below this line */
|
|
|
22c937 |
+ /**/
|
|
|
22c937 |
+ 629,
|
|
|
22c937 |
/**/
|
|
|
22c937 |
|
|
|
22c937 |
--
|
|
|
22c937 |
I noticed my daughter's Disney-net password on a sticky note:
|
|
|
22c937 |
"MickeyMinnieGoofyPluto". I asked her why it was so long.
|
|
|
22c937 |
"Because they say it has to have at least four characters."
|
|
|
22c937 |
|
|
|
22c937 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
22c937 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
22c937 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
22c937 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|