From 98f52500b6bca75539f50ea31cb333223141dfeb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 10 Feb 2015 20:03:45 +0100 Subject: [PATCH] =?UTF-8?q?updated=20for=20version=207.4.629=20Problem:=20?= =?UTF-8?q?=20=20=20Coverity=20warning=20for=20Out-of-bounds=20read.=20Sol?= =?UTF-8?q?ution:=20=20=20Increase=20MAXWLEN=20to=20254.=20(Eliseo=20Mart?= =?UTF-8?q?=C3=ADnez)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/spell.c | 5 +++-- src/version.c | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/spell.c b/src/spell.c index 9d7f933a26..31bfa952f5 100644 --- a/src/spell.c +++ b/src/spell.c @@ -311,9 +311,10 @@ # include /* 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? */ diff --git a/src/version.c b/src/version.c index ce0b57bf34..c0684b09b3 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 629, /**/ 628, /**/