# HG changeset patch # User Bram Moolenaar # Date 1423595025 -3600 # Node ID f28c171348fbfe055c86a354b4d235e2786215d9 # Parent 528828ab6ece93794394c3c0a18dba2dc0166c74 updated for version 7.4.629 Problem: Coverity warning for Out-of-bounds read. Solution: Increase MAXWLEN to 254. (Eliseo Mart?nez) diff --git a/src/spell.c b/src/spell.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 629, +/**/ 628, /**/ 627,