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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: bf2b0a147857f63daa2e5c17eed0169861371af8
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-04-04T16:48:11Z
Releases: 9.3.0
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