pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add stack depth checks to key recursive functions in backend/nod
Date: Mon, 10 Dec 2018 16:13:04 +0000
Message-ID: <E1gWOB6-0001xc-GU@gemulon.postgresql.org> (raw)

Add stack depth checks to key recursive functions in backend/nodes/*.c.

Although copyfuncs.c has a check_stack_depth call in its recursion,
equalfuncs.c, outfuncs.c, and readfuncs.c lacked one.  This seems
unwise.

Likewise fix planstate_tree_walker(), in branches where that exists.

Discussion: https://postgr.es/m/30253.1544286631@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/62999b93251eefbfcf900a0bb202721b0a422ffd

Modified Files
--------------
src/backend/nodes/equalfuncs.c | 4 ++++
src/backend/nodes/nodeFuncs.c  | 3 +++
src/backend/nodes/outfuncs.c   | 4 ++++
src/backend/nodes/readfuncs.c  | 4 ++++
4 files changed, 15 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1gWOB6-0001xc-GU@gemulon.postgresql.org>
Permalink:  ../E1gWOB6-0001xc-GU@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gWOB6-0001xc-GU@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Add stack depth checks to key recursive functions in backend/nod
  In-Reply-To: <E1gWOB6-0001xc-GU@gemulon.postgresql.org>
  References: <E1gWOB6-0001xc-GU@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox