forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit18404ea
committed
Fix segmentation fault in test_tidstore.
The do_set_block_offsets() and other functions accessing the tidstoredid not check if the tidstore was NULL. This led to a segmentationfault when these functions are called without calling thetest_create().This commit adds NULL checks in relevant functions of test_tidstore toraise an error instead if the tidstore is not initialized.Bug: #18483Reported-by: Alexander KozhemyakinReviewed-by: Michael PaquierDiscussion:https://postgr.es/m/18483-30bfff42de238000%40postgresql.org1 parent915de70 commit18404ea
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
146 | 146 |
| |
147 | 147 |
| |
148 | 148 |
| |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
149 | 156 |
| |
150 | 157 |
| |
151 | 158 |
| |
| |||
167 | 174 |
| |
168 | 175 |
| |
169 | 176 |
| |
| 177 | + | |
170 | 178 |
| |
171 | 179 |
| |
172 | 180 |
| |
| |||
217 | 225 |
| |
218 | 226 |
| |
219 | 227 |
| |
| 228 | + | |
| 229 | + | |
220 | 230 |
| |
221 | 231 |
| |
222 | 232 |
| |
| |||
305 | 315 |
| |
306 | 316 |
| |
307 | 317 |
| |
| 318 | + | |
| 319 | + | |
308 | 320 |
| |
309 | 321 |
| |
310 | 322 |
| |
| |||
314 | 326 |
| |
315 | 327 |
| |
316 | 328 |
| |
| 329 | + | |
| 330 | + | |
317 | 331 |
| |
318 | 332 |
| |
319 | 333 |
| |
|
0 commit comments
Comments
(0)