Patch 7.4.629
Problem: Coverity warning for Out-of-bounds read.
Solution: Increase MAXWLEN to 254. (Eliseo MartÃnez)
Files: src/spell.c
*** ../vim-7.4.628/src/spell.c 2014-11-19 16:38:01.512679964 +0100
--- src/spell.c 2015-02-10 20:00:22.188514910 +0100
***************
*** 311,319 ****
# include <time.h> /* for time_t */
#endif
! #define MAXWLEN 250 /* Assume max. word len is this many bytes.
Some places assume a word length fits in a
! byte, thus it can't be above 255. */
/* Type used for indexes in the word tree need to be at least 4 bytes. If int
* is 8 bytes we could use something smaller, but what? */
--- 311,320 ----
# include <time.h> /* for time_t */
#endif
! #define MAXWLEN 254 /* Assume max. word len is this many bytes.
Some places assume a word length fits in a
! byte, thus it can't be above 255.
! Must be >= PFD_NOTSPECIAL. */
/* Type used for indexes in the word tree need to be at least 4 bytes. If int
* is 8 bytes we could use something smaller, but what? */
*** ../vim-7.4.628/src/version.c 2015-02-10 19:26:58.918748560 +0100
--- src/version.c 2015-02-10 20:01:27.475662030 +0100
***************
*** 743,744 ****
--- 743,746 ----
{ /* Add new patch number below this line */
+ /**/
+ 629,
/**/
--
I noticed my daughter's Disney-net password on a sticky note:
"MickeyMinnieGoofyPluto". I asked her why it was so long.
"Because they say it has to have at least four characters."
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.