Skip to content

Commit 7e2932c

Browse files
committed
updated for version 7.4.629
Problem: Coverity warning for Out-of-bounds read. Solution: Increase MAXWLEN to 254. (Eliseo Martínez)
1 parent 771a925 commit 7e2932c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/spell.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,9 +311,10 @@
311311
# include <time.h> /* for time_t */
312312
#endif
313313

314-
#define MAXWLEN 250 /* Assume max. word len is this many bytes.
314+
#define MAXWLEN 254 /* Assume max. word len is this many bytes.
315315
Some places assume a word length fits in a
316-
byte, thus it can't be above 255. */
316+
byte, thus it can't be above 255.
317+
Must be >= PFD_NOTSPECIAL. */
317318

318319
/* Type used for indexes in the word tree need to be at least 4 bytes. If int
319320
* is 8 bytes we could use something smaller, but what? */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
629,
744746
/**/
745747
628,
746748
/**/

0 commit comments

Comments
 (0)