summaryrefslogtreecommitdiffstats
path: root/generic/regex.h
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2013-04-08 19:59:03 (GMT)
committerdgp@users.sourceforge.net <dgp>2013-04-08 19:59:03 (GMT)
commit6f46fce661a3729408f1b27333ca5f7a4adaede4 (patch)
tree66cc82c126d9de0e6ce6bc9579d76026b029826b /generic/regex.h
parent785663f67dd1f0e3454eb3f1cf3313af9420ca8d (diff)
parentf77d9ac44965ff3869aaf9136cb176def9adedc3 (diff)
downloadtcl-6f46fce661a3729408f1b27333ca5f7a4adaede4.zip
tcl-6f46fce661a3729408f1b27333ca5f7a4adaede4.tar.gz
tcl-6f46fce661a3729408f1b27333ca5f7a4adaede4.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 fa86092..b5dce50 100644
--- a/generic/regex.h
+++ b/generic/regex.h
@@ -278,6 +278,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 */