]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.4.629 v7.4.629
authorBram Moolenaar <Bram@vim.org>
Tue, 10 Feb 2015 19:03:45 +0000 (20:03 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 10 Feb 2015 19:03:45 +0000 (20:03 +0100)
Problem:    Coverity warning for Out-of-bounds read.
Solution:   Increase MAXWLEN to 254. (Eliseo Martínez)

src/spell.c
src/version.c

index 9d7f933a265c5b99f882b93091227804fe497d20..31bfa952f5026a56d463f0c4f597ddc9a60e0d2a 100644 (file)
 # include <time.h>     /* for time_t */
 #endif
 
-#define MAXWLEN 250            /* Assume max. word len is this many bytes.
+#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. */
+                                  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? */
index ce0b57bf347ece0fd663cc8e67151aa49b8c9285..c0684b09b3e6e4d6f3ec9638e90162d5c2ec72cb 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    629,
 /**/
     628,
 /**/