pgsql: Fix crash on compiling a regular expression with more than 32k c

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix crash on compiling a regular expression with more than 32k c
Date: 2013-04-04 16:49:00
Message-ID: E1UNnLQ-0003t5-4i@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Throw an error instead.

Backpatch to all supported branches.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c99e0d382f811cf0fbad50e912183ed4eb7b8de8

Modified Files
--------------
src/backend/regex/regc_color.c | 8 ++++++++
src/include/regex/regerrs.h | 4 ++++
src/include/regex/regex.h | 1 +
src/include/regex/regguts.h | 1 +
4 files changed, 14 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2013-04-04 16:57:02 pgsql: psql: fix startup crash caused by PSQLRC containing a tilde
Previous Message Andrew Dunstan 2013-04-04 14:43:53 pgsql: Fix a few thinkos in the JSON functions docs.