summaryrefslogtreecommitdiffstats
path: root/generic/regex.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-04-08 15:15:40 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-04-08 15:15:40 (GMT)
commitd2ebbe8d0453b1830261e251e116ccec67a6479c (patch)
treecb7cf35ca6a7d94b2d37084a2787526b1de32931 /generic/regex.h
parent84d7d75f97cf88a8414d4b9832487567cfaf2bd4 (diff)
downloadtcl-d2ebbe8d0453b1830261e251e116ccec67a6479c.zip
tcl-d2ebbe8d0453b1830261e251e116ccec67a6479c.tar.gz
tcl-d2ebbe8d0453b1830261e251e116ccec67a6479c.tar.bz2
3610026 Stop segfault when regexp overflows color limits.
Diffstat (limited to 'generic/regex.h')
-rw-r--r--generic/regex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/regex.h b/generic/regex.h
index a35925a..1cd2ea8 100644
--- a/generic/regex.h
+++ b/generic/regex.h
@@ -293,6 +293,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 */