summaryrefslogtreecommitdiffstats
path: root/generic/regex.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-04-08 20:07:07 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-04-08 20:07:07 (GMT)
commit1ba9a90c6e8c7c639399891e60cdc5a09c0f0acd (patch)
tree95837b1887eda849b2873c00caaf5337bbfc18dd /generic/regex.h
parent93b8f2696af89601f0c9f980088df04bfef5d593 (diff)
parent55102c2b83a91074eb32c07fb5930ccc9ca00c44 (diff)
downloadtcl-1ba9a90c6e8c7c639399891e60cdc5a09c0f0acd.zip
tcl-1ba9a90c6e8c7c639399891e60cdc5a09c0f0acd.tar.gz
tcl-1ba9a90c6e8c7c639399891e60cdc5a09c0f0acd.tar.bz2
3610026 Stop crash when the number of "colors" in a regular expression
overflows a short int. Thanks to Heikki Linnakangas for the report and the patch.
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 d6d46ce..9466fbb 100644
--- a/generic/regex.h
+++ b/generic/regex.h
@@ -281,6 +281,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 */