Commit 0bff398
committed
Check for interrupts and stack overflow during rule/view dumps.
Since ruleutils.c recurses, it could be driven to stack overflow by
deeply nested constructs. Very large queries might also take long
enough to deparse that a check for interrupts seems like a good idea.
Stick appropriate tests into a couple of key places.
Noted by Greg Stark. Back-patch to all supported branches.1 parent 41de93c commit 0bff398
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
4133 | 4134 | | |
4134 | 4135 | | |
4135 | 4136 | | |
| 4137 | + | |
| 4138 | + | |
| 4139 | + | |
| 4140 | + | |
4136 | 4141 | | |
4137 | 4142 | | |
4138 | 4143 | | |
| |||
4689 | 4694 | | |
4690 | 4695 | | |
4691 | 4696 | | |
| 4697 | + | |
| 4698 | + | |
| 4699 | + | |
| 4700 | + | |
4692 | 4701 | | |
4693 | 4702 | | |
4694 | 4703 | | |
| |||
6526 | 6535 | | |
6527 | 6536 | | |
6528 | 6537 | | |
| 6538 | + | |
| 6539 | + | |
| 6540 | + | |
| 6541 | + | |
6529 | 6542 | | |
6530 | 6543 | | |
6531 | 6544 | | |
| |||
0 commit comments