Commit b0f7dd9
committed
Check stack depth in new recursive functions
Commit b0e96f3 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 <[email protected]>
Discussion: https://postgr.es/m/[email protected]1 parent 76db9cb commit b0f7dd9
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7630 | 7630 | | |
7631 | 7631 | | |
7632 | 7632 | | |
| 7633 | + | |
| 7634 | + | |
| 7635 | + | |
7633 | 7636 | | |
7634 | 7637 | | |
7635 | 7638 | | |
| |||
7716 | 7719 | | |
7717 | 7720 | | |
7718 | 7721 | | |
| 7722 | + | |
| 7723 | + | |
| 7724 | + | |
7719 | 7725 | | |
7720 | 7726 | | |
7721 | 7727 | | |
| |||
9359 | 9365 | | |
9360 | 9366 | | |
9361 | 9367 | | |
| 9368 | + | |
| 9369 | + | |
| 9370 | + | |
9362 | 9371 | | |
9363 | 9372 | | |
9364 | 9373 | | |
| |||
12428 | 12437 | | |
12429 | 12438 | | |
12430 | 12439 | | |
| 12440 | + | |
| 12441 | + | |
| 12442 | + | |
12431 | 12443 | | |
12432 | 12444 | | |
12433 | 12445 | | |
| |||
0 commit comments