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