forked from aniani/vim
updated for version 7.4.629
Problem: Coverity warning for Out-of-bounds read. Solution: Increase MAXWLEN to 254. (Eliseo Martínez)
This commit is contained in:
@@ -311,9 +311,10 @@
|
|||||||
# include <time.h> /* for time_t */
|
# include <time.h> /* for time_t */
|
||||||
#endif
|
#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
|
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
|
/* 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? */
|
* is 8 bytes we could use something smaller, but what? */
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
629,
|
||||||
/**/
|
/**/
|
||||||
628,
|
628,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user