diff options
author | dgp <dgp@users.sourceforge.net> | 2013-04-08 15:15:40 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2013-04-08 15:15:40 (GMT) |
commit | b6f570180beda2bd35b9010f4d137a9af46f15b5 (patch) | |
tree | cb7cf35ca6a7d94b2d37084a2787526b1de32931 /generic/regguts.h | |
parent | 0185f66f16111b7d8819ffbcc4866ccdb6845683 (diff) | |
download | tcl-b6f570180beda2bd35b9010f4d137a9af46f15b5.zip tcl-b6f570180beda2bd35b9010f4d137a9af46f15b5.tar.gz tcl-b6f570180beda2bd35b9010f4d137a9af46f15b5.tar.bz2 |
3610026 Stop segfault when regexp overflows color limits.
Diffstat (limited to 'generic/regguts.h')
-rw-r--r-- | generic/regguts.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/regguts.h b/generic/regguts.h index c77a8fc..ee5c596 100644 --- a/generic/regguts.h +++ b/generic/regguts.h @@ -174,6 +174,7 @@ */ typedef short color; /* colors of characters */ typedef int pcolor; /* what color promotes to */ +#define MAX_COLOR SHRT_MAX /* max color value */ #define COLORLESS (-1) /* impossible color */ #define WHITE 0 /* default color, parent of all others */ |