diff options
| author | dgp <dgp@users.sourceforge.net> | 2013-04-08 19:45:55 (GMT) |
|---|---|---|
| committer | dgp <dgp@users.sourceforge.net> | 2013-04-08 19:45:55 (GMT) |
| commit | 7ff52157edb4f8563b115be8ef48d116e3730e0d (patch) | |
| tree | 88b8c204f46260baa9bc76dda0d1b56189e75472 /generic/regex.h | |
| parent | 0185f66f16111b7d8819ffbcc4866ccdb6845683 (diff) | |
| parent | 2e7505ce3dfc264c78ec87fc26623b853ced6143 (diff) | |
| download | tcl-7ff52157edb4f8563b115be8ef48d116e3730e0d.zip tcl-7ff52157edb4f8563b115be8ef48d116e3730e0d.tar.gz tcl-7ff52157edb4f8563b115be8ef48d116e3730e0d.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.h | 1 |
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 */ |
