pgsql: Add stack depth checks to key recursive functions in backend/nod

Started by Tom Laneover 7 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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: /messages/by-id/30253.1544286631@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/0f9fd7419a19c3bfa000117d8b475e134824259a

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