- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitb0f7dd9
committed
Check stack depth in new recursive functions
Commitb0e96f3 introduced a bunch of recursive functions, butfailed to make them check for stack depth. This can cause the backendto crash when operating on inheritance hierarchies several thousandsdeep. 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.com1 parent76db9cb commitb0f7dd9
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
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
Comments
(0)