Prevent stack overflow in query-type functions.
Noah Misch <noah@leadboat.com>
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).
Files
| Path | Change | +/− |
|---|---|---|
| contrib/intarray/_int_bool.c | modified | +3 −0 |
| contrib/ltree/ltxtquery_io.c | modified | +3 −0 |
| contrib/ltree/ltxtquery_op.c | modified | +4 −0 |
| src/backend/utils/adt/tsquery_cleanup.c | modified | +3 −0 |