From bf2b0a147857f63daa2e5c17eed0169861371af8 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 4 Apr 2013 19:04:57 +0300 Subject: Fix crash on compiling a regular expression with more than 32k colors. Throw an error instead. Backpatch to all supported branches. --- src/include/regex/regerrs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include/regex/regerrs.h') diff --git a/src/include/regex/regerrs.h b/src/include/regex/regerrs.h index a761371e5d7..f02711ee176 100644 --- a/src/include/regex/regerrs.h +++ b/src/include/regex/regerrs.h @@ -77,3 +77,7 @@ { REG_ETOOBIG, "REG_ETOOBIG", "nfa has too many states" }, + +{ + REG_ECOLORS, "REG_ECOLORS", "too many colors" +}, -- cgit v1.2.3