forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf1f6ded
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 parent8397f16 commitf1f6ded
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
| 127 | + | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments
Comments
(0)