pgsql: Prevent stack overflow in query-type functions. - Mailing list pgsql-committers

From Noah Misch
Subject pgsql: Prevent stack overflow in query-type functions.
Date
Msg-id E1Zj6Sb-0005e2-9L@gemulon.postgresql.org
Whole thread Raw
List 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_2_STABLE

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

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(+)


pgsql-committers by date:

Previous
From: Noah Misch
Date:
Subject: pgsql: Prevent stack overflow in query-type functions.
Next
From: Noah Misch
Date:
Subject: pgsql: Prevent stack overflow in query-type functions.