aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/network_spgist.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2023-11-08 18:44:54 +0100
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2023-11-08 18:44:54 +0100
commitb0f7dd915bca6243f3daf52a81b8d0682a38ee3b (patch)
treec1e5b01323f7a7c7ad3a19289e5297a1dc3b2564 /src/backend/utils/adt/network_spgist.c
parent76db9cb6368eb553ec334fe05e1258f2439bf07f (diff)
downloadpostgresql-b0f7dd915bca6243f3daf52a81b8d0682a38ee3b.tar.gz
postgresql-b0f7dd915bca6243f3daf52a81b8d0682a38ee3b.zip
Check stack depth in new recursive functions
Commit b0e96f311985 introduced a bunch of recursive functions, but failed to make them check for stack depth. This can cause the backend to crash when operating on inheritance hierarchies several thousands deep. Protect the code by adding the missing stack depth checks. Reported-by: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/b2ac2392-9727-5f76-e890-721ac80c1615@gmail.com
Diffstat (limited to 'src/backend/utils/adt/network_spgist.c')
0 files changed, 0 insertions, 0 deletions