Fix crash on compiling a regular expression with more than 32k colors.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 88b000c1b6daabd9044cd3c68b0b9e94eacb4c65
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-04-04T16:32:05Z
Releases: 9.1.10
Fix crash on compiling a regular expression with more than 32k colors.

Throw an error instead.

Backpatch to all supported branches.

Files

PathChange+/−
src/backend/regex/regc_color.c modified +8 −0
src/include/regex/regerrs.h modified +4 −0
src/include/regex/regex.h modified +1 −0
src/include/regex/regguts.h modified +1 −0