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