forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit00ac25a
committed
Tighten test_predtest's input checks, and improve error messages.
test_predtest() neglected to consider the possibility thatSPI_plan_get_cached_plan would return NULL. This led to a coredump if the input (incorrectly) contains more than one SQLcommand.While here, let's expend more than zero effort on the errormessage for this case and nearby ones.Per (half of) bug #18483 from Alexander Kozhemyakin.Back-patch to all supported branches, not because this isvery significant (it's merely test scaffolding) but to makeour world a bit safer for fuzz testing.Discussion:https://postgr.es/m/18483-30bfff42de238000@postgresql.org1 parent7ed8ce8 commit00ac25a
1 file changed
+4
-4
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
144 |
| - | |
| 143 | + | |
| 144 | + | |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
| 147 | + | |
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
|
0 commit comments
Comments
(0)