Check stack depth in new recursive functions
Alvaro Herrera <alvherre@alvh.no-ip.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +12 −0 |
Discussion
- cataloguing NOT NULL constraints 163 messages · 2022-08-17 → 2024-05-16