From bf2b0a147857f63daa2e5c17eed0169861371af8 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 4 Apr 2013 19:04:57 +0300 Subject: Fix crash on compiling a regular expression with more than 32k colors. Throw an error instead. Backpatch to all supported branches. --- src/include/regex/regex.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/regex/regex.h') diff --git a/src/include/regex/regex.h b/src/include/regex/regex.h index 616c2c6450d..3e87dff17b2 100644 --- a/src/include/regex/regex.h +++ b/src/include/regex/regex.h @@ -153,6 +153,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 */ -- cgit v1.2.3