pgsql: Prevent stack overflow in query-type functions.

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Prevent stack overflow in query-type functions.
Date: 2015-10-05 14:09:49
Message-ID: E1Zj6Sb-0005dK-5k@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Prevent stack overflow in query-type functions.

The tsquery, ltxtquery and query_int data types have a common ancestor.
Having acquired check_stack_depth() calls independently, each was
missing at least one call. Back-patch to 9.0 (all supported versions).

Branch
------
REL9_4_STABLE

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

Modified Files
--------------
contrib/intarray/_int_bool.c | 3 +++
contrib/ltree/ltxtquery_io.c | 3 +++
contrib/ltree/ltxtquery_op.c | 4 ++++
src/backend/utils/adt/tsquery_cleanup.c | 3 +++
4 files changed, 13 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2015-10-05 14:15:00 pgsql: Add regression tests for INSERT/UPDATE+RETURNING
Previous Message Tom Lane 2015-10-05 13:51:31 Re: [COMMITTERS] pgsql: Lower *_freeze_max_age minimum values.