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)
commitb6f570180beda2bd35b9010f4d137a9af46f15b5 (patch)
treecb7cf35ca6a7d94b2d37084a2787526b1de32931 /generic/regex.h
parent0185f66f16111b7d8819ffbcc4866ccdb6845683 (diff)
downloadtcl-b6f570180beda2bd35b9010f4d137a9af46f15b5.zip
tcl-b6f570180beda2bd35b9010f4d137a9af46f15b5.tar.gz
tcl-b6f570180beda2bd35b9010f4d137a9af46f15b5.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 */