forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit496ab1d
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 parent2db574a commit496ab1d
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1054 | 1054 |
| |
1055 | 1055 |
| |
1056 | 1056 |
| |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
1057 | 1060 |
| |
1058 | 1061 |
| |
1059 | 1062 |
| |
|
0 commit comments
Comments
(0)