diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-04-04 19:04:57 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2013-04-04 19:32:20 +0300 |
commit | 7a30f29b05043939a95c178068b215efd489348d (patch) | |
tree | f5ef2135f522fdd94b1806a1c5a201b95f174558 /src/include/regex/regex.h | |
parent | 292f7b27260aaebd27f66db2fc14e8c8da975513 (diff) |
Fix crash on compiling a regular expression with more than 32k colors.
Throw an error instead.
Backpatch to all supported branches.
Diffstat (limited to 'src/include/regex/regex.h')
-rw-r--r-- | src/include/regex/regex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/regex/regex.h b/src/include/regex/regex.h index 52857a28894..0ab02203124 100644 --- a/src/include/regex/regex.h +++ b/src/include/regex/regex.h @@ -152,6 +152,7 @@ typedef struct #define REG_MIXED 17 /* character widths of regex and string differ */ #define REG_BADOPT 18 /* invalid embedded option */ #define REG_ETOOBIG 19 /* nfa has too many states */ +#define REG_ECOLORS 20 /* too many colors */ /* two specials for debugging and testing */ #define REG_ATOI 101 /* convert error-code name to number */ #define REG_ITOA 102 /* convert error-code number to name */ |