forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit60f8763
committed
Catch stack overflow when recursing in transformFromClauseItem().
Most parts of the parser can expect that the stack overflow checkin transformExprRecurse() will trigger before things get desperate.However, transformFromClauseItem() can recurse directly to selfwithout having analyzed any expressions, so it's possible to driveit to a stack-overrun crash. Add a check to prevent that.Per bug #17583 from Egor Chindyaskin. Back-patch to all supportedbranches.Richard GuoDiscussion:https://postgr.es/m/17583-33be55b9f981f75c@postgresql.org1 parent8b2638f commit60f8763
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1055 | 1055 |
| |
1056 | 1056 |
| |
1057 | 1057 |
| |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
1058 | 1061 |
| |
1059 | 1062 |
| |
1060 | 1063 |
| |
|
0 commit comments
Comments
(0)