pgsql: Handle operator-stack-overflow errors softly in tsquery and ltxt

Started by Tom Laneabout 2 months ago1 messagescommitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Handle operator-stack-overflow errors softly in tsquery and ltxtquery.

When we converted these types' input functions to report errors
through the soft-error mechanism, we missed that stack-overflow
errors can be triggered through bad user input. Convert those
to be reported softly, too.

Bug: #19745
Reported-by: Ke <kehan5800@gmail.com>
Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: /messages/by-id/19745-39cd7b93a505f9a9@postgresql.org
Backpatch-through: 16

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cb600aae3a33bec740f79247e2514c2174eed91c

Modified Files
--------------
contrib/ltree/ltxtquery_io.c | 8 ++++----
src/backend/utils/adt/tsquery.c | 14 +++++++++-----
2 files changed, 13 insertions(+), 9 deletions(-)