mirror of
https://github.com/neovim/neovim.git
synced 2025-12-03 07:23:05 +00:00
coverity/13764: Out-of-bounds read: RI.
Problem : Out-of-bounds read @ 9514.
Diagnostic : Real issue.
Rationale : PFD_NOTSPECIAL (253) is defined as the maximum not-special
value a prefix can have. But stack (and other) arrays are
defined as having MAXWLEN (250) items.
Resolution : Define MAXWLEN = 254.
This commit is contained in:
@@ -335,7 +335,7 @@
|
||||
# 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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user