mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +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
|
# 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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user