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:
Eliseo Martínez
2015-02-03 17:49:01 +01:00
parent cf8e175cf5
commit d7038127ca

View File

@@ -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.