summaryrefslogtreecommitdiff
path: root/src/include/regex/regex.h
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-04-04 19:04:57 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2013-04-04 19:32:13 +0300
commitaae32bad9e3031fc440e9f2b6acd9a6170ad13be (patch)
treefc41b6e3babcab63bff96fa2c07b0598d1f87844 /src/include/regex/regex.h
parenteb1656b813435127f06df57f2202d2abc387ee88 (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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/regex/regex.h b/src/include/regex/regex.h
index d198864e90e..adaf1a168d7 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 */