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

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: c99e0d382f811cf0fbad50e912183ed4eb7b8de8
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-04-04T16:31:59Z
Releases: 9.2.5
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