]> granicus.if.org Git - postgresql/commit
Prevent stack overflow in query-type functions.
authorNoah Misch <noah@leadboat.com>
Mon, 5 Oct 2015 14:06:30 +0000 (10:06 -0400)
committerNoah Misch <noah@leadboat.com>
Mon, 5 Oct 2015 14:06:34 +0000 (10:06 -0400)
commitbed3f6d0354a7ca2fcd7d088ff271b422dbf9921
tree1b1a0b14590eb9ee85894bea8a2c343ed147fe90
parenta0c02ed5b4ef24d91a6fb22d447fc5cba8aeb146
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).
contrib/intarray/_int_bool.c
contrib/ltree/ltxtquery_io.c
contrib/ltree/ltxtquery_op.c
src/backend/utils/adt/tsquery_cleanup.c